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") || "[]"));