mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
fix issue of accessing undefined tab.headElement (#8363)
This commit is contained in:
parent
b7c8290230
commit
fc15f39ece
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ export class Custom extends Model {
|
|||
}) {
|
||||
super({app: options.app, id: options.tab.id});
|
||||
if (window.siyuan.config.fileTree.openFilesUseCurrentTab) {
|
||||
options.tab.headElement.classList.add("item--unupdate");
|
||||
options.tab.headElement?.classList.add("item--unupdate");
|
||||
}
|
||||
|
||||
this.element = options.tab.panelElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue