Skip to content

Commit 30438de

Browse files
author
Dennis Labordus
committed
Small fix.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 9e41643 commit 30438de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compas/CompasScl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class CompasScl extends LitElement {
5757
if (name === '') {
5858
name = id;
5959
}
60-
const version = item.getElementsByTagNameNS(SDS_NAMESPACE, "Version").item(0);
60+
const version = item.getElementsByTagNameNS(SDS_NAMESPACE, "Version").item(0)!.textContent ?? '';
6161
return html`<mwc-list-item tabindex="0"
6262
@click=${() => this.dispatchEvent(newSclSelectedEvent(id))}>
6363
${name} (${version})

0 commit comments

Comments
 (0)