From 72b3f151a608689b82c27bb5c3ea07d38b158820 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 30 Aug 2022 00:16:47 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/4901 --- app/src/util/history.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 4073ae50d..42b8ce8d7 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -26,7 +26,7 @@ const renderDoc = (element: HTMLElement, currentPage: number) => { op: (selectElements[0] as HTMLSelectElement).value, type: 0 }, (response) => { - if (currentPage < response.data.totalCount) { + if (currentPage < response.data.pageCount) { nextElement.removeAttribute("disabled"); } else { nextElement.setAttribute("disabled", "disabled"); @@ -277,6 +277,8 @@ export const openHistory = () => { + +