Skip to content

Commit

Permalink
Don't need Promise.all any longer
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle committed Nov 27, 2024
1 parent 79a0a3a commit 2742554
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ui-v2/src/hooks/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,11 +314,9 @@ export const useDeleteVariable = () => {
params: { path: { id } },
}),
onSettled: async () => {
return await Promise.all([
queryClient.invalidateQueries({
queryKey: variableKeys.all,
}),
]);
return await queryClient.invalidateQueries({
queryKey: variableKeys.all,
});
},
});

Expand Down

0 comments on commit 2742554

Please sign in to comment.