mirror of
https://github.com/zadam/trilium.git
synced 2025-11-15 09:45:52 +01:00
client/content header container: fix parent detection
This commit is contained in:
@@ -25,8 +25,7 @@ export default class ContentHeader extends Container<BasicWidget> {
|
||||
}
|
||||
|
||||
init() {
|
||||
this.parentElement = this.parent!.$widget.get(0);
|
||||
|
||||
this.parentElement = this.parent?.$widget.get(0);
|
||||
if (!this.parentElement) {
|
||||
console.warn("No parent set for <ContentHeader>.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user