mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 21:29:20 +00:00
Improve invalidateQueries for useToggleDeleteProjectProtection
This commit is contained in:
@@ -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) });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user