Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5753

Vanessa320353d51a31
diff --git a/app/src/util/history.ts b/app/src/util/history.ts
index 3a28fa79e1..7d0a3decd4 100644
--- a/app/src/util/history.ts
+++ b/app/src/util/history.ts
@@ -355,7 +355,7 @@ export const openHistory = () => {
});
} else if (dataType === "doc") {
fetchPost("/api/history/rollbackDocHistory", {
- notebook: (firstPanelElement.querySelectorAll(".b3-select")[1] as HTMLSelectElement).value,
+ notebook: (firstPanelElement.querySelector('.b3-select[data-type="notebookselect"]') as HTMLSelectElement).value,
historyPath: target.parentElement.getAttribute("data-path")
});
} else if (dataType === "notebook") {