mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 17:13:15 +00:00
add paginated to store, and fix upload docs property
This commit is contained in:
@@ -38,6 +38,7 @@ const preloadedState: { preference: Preference } = {
|
||||
},
|
||||
],
|
||||
modalState: 'INACTIVE',
|
||||
paginatedDocuments: null,
|
||||
},
|
||||
};
|
||||
const store = configureStore({
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user