Fix build
This commit is contained in:
parent
adf4eb18c0
commit
bd102354ff
2 changed files with 7 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue