This commit is contained in:
parent
f19d5a2085
commit
e52fae7fe0
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ const openDockMenu = (app: App) => {
|
|||
return;
|
||||
} else {
|
||||
if (custom) {
|
||||
custom.destroy();
|
||||
if (custom.destroy) {
|
||||
custom.destroy();
|
||||
}
|
||||
}
|
||||
custom = plugin.docks[dockId].mobileModel(document.querySelector('#sidebar [data-type="sidebar-plugin"]'));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue