Skip to content

Commit

Permalink
fix: invalidate query cache when creating custom storage volume
Browse files Browse the repository at this point in the history
Signed-off-by: Mason Hu <[email protected]>
  • Loading branch information
mas-who committed Aug 2, 2024
1 parent 506ca85 commit deffa91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/storage/forms/StorageVolumeCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const StorageVolumeCreate: FC = () => {
void queryClient.invalidateQueries({
queryKey: [queryKeys.storage],
});
void queryClient.invalidateQueries({
queryKey: [queryKeys.customVolumes],
});
void queryClient.invalidateQueries({
queryKey: [queryKeys.projects, project],
});
Expand Down

0 comments on commit deffa91

Please sign in to comment.