isPausingUpdate check

This commit is contained in:
tamaina 2023-07-17 10:26:42 +00:00
parent 31b62db14b
commit 02054528f9
1 changed files with 1 additions and 0 deletions

View File

@ -551,6 +551,7 @@ function concatItems(oldItems: MisskeyEntity[]) {
async function executeQueue() { async function executeQueue() {
if (queue.value.size === 0) return; if (queue.value.size === 0) return;
if (isPausingUpdate.value) return;
const queueArr = Array.from(queue.value.entries()); const queueArr = Array.from(queue.value.entries());
queue.value = new Map(queueArr.slice(props.pagination.limit)); queue.value = new Map(queueArr.slice(props.pagination.limit));
isPausingUpdate.value = true; isPausingUpdate.value = true;