This commit is contained in:
Vanessa 2022-12-21 22:27:46 +08:00
parent ebca9c64e1
commit b3b67832b0

View File

@ -77,6 +77,10 @@ export const openSearch = async (hotkey: string, key?: string, notebookId?: stri
} else if (window.siyuan.config.keymap.general.globalSearch.custom === hotkey) {
hPath = localData.hPath || "";
idPath = localData.idPath || [];
// 历史原因2.5.2 之前为 string https://github.com/siyuan-note/siyuan/issues/6902
if (typeof idPath === "string") {
idPath = [idPath];
}
}
let range: Range;