Skip to content

Commit

Permalink
🎨 #11931
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 20, 2024
1 parent e461185 commit 920794b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/plugin/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const afterLoadPlugin = (plugin: Plugin) => {
updateDock(dockItem, index, plugin, "Bottom");
});
Object.keys(plugin.docks).forEach(key => {
if (window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key]) {
if (window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name] && window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key]) {
plugin.docks[key].config = window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][plugin.name][key];
}
const dock = plugin.docks[key];
Expand Down

0 comments on commit 920794b

Please sign in to comment.