fix: resolved permission not defined for custom org role

This commit is contained in:
=
2024-09-26 20:43:08 +05:30
parent bac865eab1
commit 3f4c4f7418
4 changed files with 14 additions and 3 deletions
+2 -1
View File
@@ -10,9 +10,10 @@ export const kmsKeys = {
getActiveProjectKms: (projectId: string) => ["get-active-project-kms", { projectId }]
};
export const useGetExternalKmsList = (orgId: string) => {
export const useGetExternalKmsList = (orgId: string, { enabled }: { enabled?: boolean } = {}) => {
return useQuery({
queryKey: kmsKeys.getExternalKmsList(orgId),
enabled,
queryFn: async () => {
const {
data: { externalKmsList }