mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 08:13:10 +02:00
skip executeQueue if no queue
This commit is contained in:
parent
4fabe26b07
commit
c7c3c32871
1 changed files with 1 additions and 0 deletions
|
@ -541,6 +541,7 @@ function concatItems(oldItems: MisskeyEntity[]) {
|
||||||
|
|
||||||
async function executeQueue() {
|
async function executeQueue() {
|
||||||
console.log('executeQueue');
|
console.log('executeQueue');
|
||||||
|
if (queue.value.size === 0) 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 = true;
|
isPausingUpdate = true;
|
||||||
|
|
Loading…
Reference in a new issue