mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 16:39:02 +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() {
|
init() {
|
||||||
this.parentElement = this.parent!.$widget.get(0);
|
this.parentElement = this.parent?.$widget.get(0);
|
||||||
|
|
||||||
if (!this.parentElement) {
|
if (!this.parentElement) {
|
||||||
console.warn("No parent set for <ContentHeader>.");
|
console.warn("No parent set for <ContentHeader>.");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user