mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-19 08:14:40 +00:00
add paginated to store, and fix upload docs property
This commit is contained in:
1 parent
1056c943d3
commit
6c585de6d3
2 files changed
+3
-2
No files matched your search
@@ -38,6 +38,7 @@ const preloadedState: { preference: Preference } = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
modalState: 'INACTIVE',
|
modalState: 'INACTIVE',
|
||||||
|
paginatedDocuments: null,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const store = configureStore({
|
const store = configureStore({
|
||||||
|
|||||||
@@ -191,8 +191,8 @@ function Upload({
|
|||||||
)) ||
|
)) ||
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
if (data && Array.isArray(data.docs)) {
|
if (data && Array.isArray(data)) {
|
||||||
data.docs.map((updatedDoc: Doc) => {
|
data.map((updatedDoc: Doc) => {
|
||||||
if (updatedDoc.id && !docIds.has(updatedDoc.id)) {
|
if (updatedDoc.id && !docIds.has(updatedDoc.id)) {
|
||||||
// Select the doc not present in the intersection of current Docs and fetched data
|
// Select the doc not present in the intersection of current Docs and fetched data
|
||||||
dispatch(setSelectedDocs(updatedDoc));
|
dispatch(setSelectedDocs(updatedDoc));
|
||||||
|
|||||||
Reference in new issue
Block a user