add paginated to store, and fix upload docs property

This commit is contained in:
fadingNA
2024-11-10 14:53:52 -05:00
parent 1056c943d3
commit 6c585de6d3
2 changed files with 3 additions and 2 deletions

View File

@@ -191,8 +191,8 @@ function Upload({
)) ||
[],
);
if (data && Array.isArray(data.docs)) {
data.docs.map((updatedDoc: Doc) => {
if (data && Array.isArray(data)) {
data.map((updatedDoc: Doc) => {
if (updatedDoc.id && !docIds.has(updatedDoc.id)) {
// Select the doc not present in the intersection of current Docs and fetched data
dispatch(setSelectedDocs(updatedDoc));