Improve invalidateQueries for useToggleDeleteProjectProtection

This commit is contained in:
carlosmonastyrski
2025-04-15 08:07:21 -03:00
parent 101c056f43
commit 1d8c513da1

View File

@@ -336,8 +336,8 @@ export const useUpdateWorkspaceVersionLimit = () => {
});
return data.workspace;
},
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: workspaceKeys.getAllUserWorkspace() });
onSuccess: (dto) => {
queryClient.invalidateQueries({ queryKey: workspaceKeys.getAllUserWorkspace(dto.type) });
}
});
};