Fix build

This commit is contained in:
Pieter Vander Vennet 2021-11-26 20:01:06 +01:00
parent adf4eb18c0
commit bd102354ff
2 changed files with 7 additions and 13 deletions

View file

@ -15,7 +15,7 @@ export default class Title extends BaseUIElement {
this.title = embedded
}
this.level = level;
this.id = this.title.ConstructElement().innerText.replace(/ /g, '_')
this.id = this.title.ConstructElement()?.innerText?.replace(/ /g, '_') ?? ""
}
AsMarkdown(): string {