Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/8055

Vanessa882ed6ed6951
diff --git a/app/src/history/history.ts b/app/src/history/history.ts
index cdf26d67bb..b79b4283ef 100644
--- a/app/src/history/history.ts
+++ b/app/src/history/history.ts
@@ -357,7 +357,7 @@ const bindEvent = (element: Element, dialog?: Dialog) => {
disabledProtyle(historyEditor.protyle);
const repoElement = element.querySelector('#historyContainer [data-type="repo"]');
const repoSelectElement = repoElement.querySelector(".b3-select") as HTMLSelectElement;
- repoSelectElement.querySelector(".b3-select").addEventListener("change", () => {
+ repoSelectElement.addEventListener("change", () => {
renderRepo(repoElement, 1);
const btnElement = element.querySelector(".b3-button[data-type='compare']");
btnElement.setAttribute("disabled", "disabled");