Skip to content

Commit

Permalink
feat: invalidate task description storing to refetch the updated data…
Browse files Browse the repository at this point in the history
… on image upload and start processing
  • Loading branch information
suzit-10 committed Jan 1, 2025
1 parent a1b021e commit be08dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const DescriptionBox = () => {
>({
mutationFn: postTaskStatus,
onSuccess: () => {
queryClient.invalidateQueries(['task-assets-info']);
queryClient.invalidateQueries(['task-description']);
},
onError: (err: any) => {
toast.error(err.message);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const FilesUploadingPopOver = ({

// function to close modal and refetch task assets to update the UI
function closeModal() {
queryClient.invalidateQueries(['task-assets-info']);
queryClient.invalidateQueries(['task-description']);
setTimeout(() => {
dispatch(toggleModal());
}, 2000);
Expand Down

0 comments on commit be08dde

Please sign in to comment.