An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Check replacement keys when opening history https://github.com/siyuan-note/siyuan/issues/19463
Danielcd06c70fd0da
diff --git a/app/src/search/toggleHistory.ts b/app/src/search/toggleHistory.tsindex d644a7b24d..1031978ca1 100644--- a/app/src/search/toggleHistory.ts+++ b/app/src/search/toggleHistory.ts@@ -13,7 +13,7 @@ import {inputEvent} from "./util";export const toggleReplaceHistory = (replaceInputElement: HTMLInputElement) => {const list = window.siyuan.storage[Constants.LOCAL_SEARCHKEYS];- if (!list.replaceKeys || list.replaceKeys.length === 0 || (list.length === 1 && list[0] === replaceInputElement.value)) {+ if (!list.replaceKeys || list.replaceKeys.length === 0 || (list.replaceKeys.length === 1 && list.replaceKeys[0] === replaceInputElement.value)) {return;}const menu = new Menu(Constants.MENU_SEARCH_REPLACE_HISTORY);