Fix refreshgrid behaving like load more (#1853)

This commit is contained in:
Laurent Nguyen 2024-05-31 17:57:11 +02:00 committed by GitHub
parent 98c5fe65e6
commit 6276464e0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1627,6 +1627,7 @@ export const DocumentsTabComponent: React.FunctionComponent<IDocumentsTabCompone
async (applyFilterButtonPressed?: boolean): Promise<void> => {
// clear documents grid
setDocumentIds([]);
setContinuationToken(undefined); // For mongo
try {
// reset iterator which will autoload documents (in useEffect)
setDocumentsIterator({