Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: https://github.com/siyuan-note/siyuan/issues/6858

Vanessac30b85d01f23
diff --git a/app/src/history/diff.ts b/app/src/history/diff.ts
index f7ae20db7b..55d13411db 100644
--- a/app/src/history/diff.ts
+++ b/app/src/history/diff.ts
@@ -149,8 +149,8 @@ export const showDiff = (ids: string) => {
width: "80vw",
height: "80vh",
destroyCallback() {
- leftEditor.destroy();
- rightEditor.destroy();
+ leftEditor = undefined
+ rightEditor = undefined
}
});
dialog.element.addEventListener("click", (event) => {
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index fcfc7ecb00..fb08e38315 100644
--- a/app/src/history/history.ts
+++ b/app/src/history/history.ts
@@ -297,7 +297,7 @@ export const openHistory = () => {
width: "80vw",
height: "80vh",
destroyCallback() {
- historyEditor.destroy();
+ historyEditor = undefined;
}
});