This commit is contained in:
Vanessa 2023-12-26 14:41:25 +08:00
parent f19d5a2085
commit e52fae7fe0

View file

@ -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"]'));
}