mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 06:24:30 +00:00
Merge pull request #218 from shumaiOne/fix/upload-task-completion-status
fix(webui): invalidate upload tasks query when upload task starts and completes
This commit is contained in:
@@ -540,6 +540,9 @@ export function FileBrowser({
|
|||||||
queryClient.invalidateQueries({
|
queryClient.invalidateQueries({
|
||||||
queryKey: ['search', teamId, assetId],
|
queryKey: ['search', teamId, assetId],
|
||||||
})
|
})
|
||||||
|
queryClient.invalidateQueries({
|
||||||
|
queryKey: ['teams', teamId, 'upload', 'tasks'],
|
||||||
|
})
|
||||||
|
|
||||||
// The RPC client returns an object that we cast to the expected type
|
// The RPC client returns an object that we cast to the expected type
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
@@ -547,6 +550,9 @@ export function FileBrowser({
|
|||||||
queryClient.invalidateQueries({
|
queryClient.invalidateQueries({
|
||||||
queryKey: ['search', teamId, assetId],
|
queryKey: ['search', teamId, assetId],
|
||||||
})
|
})
|
||||||
|
queryClient.invalidateQueries({
|
||||||
|
queryKey: ['teams', teamId, 'upload', 'tasks'],
|
||||||
|
})
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user