From b3b67832b072cc620b57e3e7f35e7361e99dff7b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 21 Dec 2022 22:27:46 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/6901 --- app/src/search/spread.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/search/spread.ts b/app/src/search/spread.ts index adaf14253..241258f5c 100644 --- a/app/src/search/spread.ts +++ b/app/src/search/spread.ts @@ -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;