Skip to content

Commit b234be8

Browse files
test: fix visual tests
1 parent 645ed21 commit b234be8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

editors/dataset/data-set-element-editor.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,17 +101,17 @@ export class DataSetElementEditor extends LitElement {
101101

102102
@state()
103103
private get name(): string | null {
104-
return this.element!.getAttribute('name');
104+
return this.element?.getAttribute('name') ?? null;
105105
}
106106

107107
@state()
108108
private get desc(): string | null {
109-
return this.element!.getAttribute('desc');
109+
return this.element?.getAttribute('desc') ?? null;
110110
}
111111

112112
@state()
113113
private get fcdaCount(): number {
114-
return this.element!.querySelectorAll('FCDA').length;
114+
return this.element?.querySelectorAll('FCDA').length ?? 0;
115115
}
116116

117117
@state()

0 commit comments

Comments
 (0)