mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 08:29:00 +01:00
client/content header container: fix parent detection
This commit is contained in:
parent
afa92551ea
commit
4ba7907bee
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user