From aa47da6ad0ff6293624ac40dfffa689dec8a5106 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 Feb 2023 22:41:41 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=87=8D=E5=BB=BA=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=E9=81=AE=E7=BD=A9=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/7386?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/history/history.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/history/history.ts b/app/src/history/history.ts index 197adb944..5fb625172 100644 --- a/app/src/history/history.ts +++ b/app/src/history/history.ts @@ -606,9 +606,8 @@ export const openHistory = () => { renderDoc(firstPanelElement, type === "docprevious" ? currentPage - 1 : currentPage + 1); break; } else if (type === "rebuildIndex") { - fetchPost("/api/history/reindexHistory", {}, () => { - renderDoc(firstPanelElement, 1); - }); + fetchPost("/api/history/reindexHistory", {}); + dialog.destroy(); break; } else if (type === "compare") { showDiff(JSON.parse(target.getAttribute("data-ids") || "[]"));