fix: bug in chat deletion pagination interact
change 1: when selecting a tag to filter the `tagView` store is set to disable paginated loading. This is so all tagged items can be loaded at once. deleting a tag when in the filtered view returns to the unfiltered view. this change now sets the `tagView` store to `false` so pagination can continue change 2: formatting
This commit is contained in:
@@ -424,7 +424,7 @@
|
||||
files: chatFiles
|
||||
});
|
||||
await chats.set(
|
||||
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -472,7 +472,7 @@
|
||||
files: chatFiles
|
||||
});
|
||||
await chats.set(
|
||||
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -634,7 +634,7 @@
|
||||
timestamp: Date.now()
|
||||
});
|
||||
await chats.set(
|
||||
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
||||
);
|
||||
await chatId.set(chat.id);
|
||||
} else {
|
||||
@@ -711,7 +711,7 @@
|
||||
})
|
||||
);
|
||||
|
||||
await chats.set(await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit));
|
||||
await chats.set(await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit));
|
||||
|
||||
return _responses;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user