Fix: correct queryKey in useBatchUpdateDocMetadata and add test case (#25327)
This commit is contained in:
@@ -119,7 +119,7 @@ export const useBatchUpdateDocMetadata = () => {
|
||||
})
|
||||
// meta data in document list
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: [NAME_SPACE, 'dataset', payload.dataset_id],
|
||||
queryKey: [NAME_SPACE, 'document', payload.dataset_id],
|
||||
})
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: [...useDocumentListKey, payload.dataset_id],
|
||||
|
Reference in New Issue
Block a user