From c7c3c3287118dcb46d059d2b7d0a8af5e000de7f Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 14 Jul 2023 07:19:43 +0000 Subject: [PATCH] skip executeQueue if no queue --- packages/frontend/src/components/MkPagination.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue index 9deb1de43..e3b7be950 100644 --- a/packages/frontend/src/components/MkPagination.vue +++ b/packages/frontend/src/components/MkPagination.vue @@ -541,6 +541,7 @@ function concatItems(oldItems: MisskeyEntity[]) { async function executeQueue() { console.log('executeQueue'); + if (queue.value.size === 0) return; const queueArr = Array.from(queue.value.entries()); queue.value = new Map(queueArr.slice(props.pagination.limit)); isPausingUpdate = true;