From 320353d51a319e08c6e0926b304d63854edbe1ef Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 30 Aug 2022 21:22:59 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/5753 --- app/src/util/history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 3a28fa79e..7d0a3decd 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") {