Skip to content

Commit

Permalink
Merge pull request #322 from hotosm/feat/orthophoto-display
Browse files Browse the repository at this point in the history
feat: update status on rerun processing
  • Loading branch information
suzit-10 authored Nov 4, 2024
2 parents 949c27b + fe081bd commit 160f10b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ const DescriptionBox = () => {

const { mutate: updateStatus } = useMutation<any, any, any, unknown>({
mutationFn: postTaskStatus,
onSuccess: () => {
queryClient.invalidateQueries(['task-assets-info']);
},
onError: (err: any) => {
toast.error(err.message);
},
Expand All @@ -61,7 +64,6 @@ const DescriptionBox = () => {
taskId,
data: { event: 'image_upload', updated_at: new Date().toISOString() },
});
queryClient.invalidateQueries(['task-assets-info']);
toast.success('Image processing re-started');
},
});
Expand Down

0 comments on commit 160f10b

Please sign in to comment.