Improve invalidateQueries for useToggleDeleteProjectProtection

This commit is contained in:
carlosmonastyrski
2025-04-15 08:07:21 -03:00
parent 101c056f43
commit 1d8c513da1
+2 -2
View File
@@ -336,8 +336,8 @@ export const useUpdateWorkspaceVersionLimit = () => {
}); });
return data.workspace; return data.workspace;
}, },
onSuccess: () => { onSuccess: (dto) => {
queryClient.invalidateQueries({ queryKey: workspaceKeys.getAllUserWorkspace() }); queryClient.invalidateQueries({ queryKey: workspaceKeys.getAllUserWorkspace(dto.type) });
} }
}); });
}; };