mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-12-03 10:33:17 +00:00
remove params on getDocs
This commit is contained in:
@@ -83,8 +83,7 @@ const Documents: React.FC<DocumentsProps> = ({ handleDeleteDocument }) => {
|
||||
}
|
||||
getDocsWithPagination(sortField, sortOrder, page, rowsPerPg)
|
||||
.then((data) => {
|
||||
console.log('Data received from getDocsWithPagination:', data);
|
||||
dispatch(setSourceDocs(data ? data.docs : []));
|
||||
//dispatch(setSourceDocs(data ? data.docs : []));
|
||||
setFetchedDocuments(data ? data.docs : []);
|
||||
setTotalPages(data ? data.totalPages : 0);
|
||||
setTotalDocuments(data ? data.totalDocuments : 0);
|
||||
|
||||
Reference in New Issue
Block a user