This commit is contained in:
Vanessa 2022-12-27 09:45:03 +08:00
parent f53c2fdebd
commit aab48e9c8a
2 changed files with 2 additions and 2 deletions

View file

@ -704,7 +704,7 @@ const addConfigMoreMenu = async (config: ISearchOption, edit: Protyle, element:
}
}]
}).element);
const localData = JSON.parse(localStorage.getItem(Constants.LOCAL_SEARCHEKEYS) || "{}")
const localData = JSON.parse(localStorage.getItem(Constants.LOCAL_SEARCHEKEYS) || "{}");
if (typeof localData.layout === "undefined") {
localData.layout = 0;
}