mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 21:26:04 +00:00
accounted for not scopes in databricks use case
This commit is contained in:
@@ -471,10 +471,11 @@ const getAppsDatabricks = async ({ url, accessToken }: { url?: string | null; ac
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const scopes = res.data.scopes.map((a) => ({
|
const scopes =
|
||||||
name: a.name, // name maps to unique scope name in Databricks
|
res.data?.scopes?.map((a) => ({
|
||||||
backend_type: a.backend_type
|
name: a.name, // name maps to unique scope name in Databricks
|
||||||
}));
|
backend_type: a.backend_type
|
||||||
|
})) ?? [];
|
||||||
|
|
||||||
return scopes;
|
return scopes;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ export default function DatabricksCreateIntegrationPage() {
|
|||||||
setTargetScope(val);
|
setTargetScope(val);
|
||||||
}}
|
}}
|
||||||
className="w-full border border-mineshaft-500"
|
className="w-full border border-mineshaft-500"
|
||||||
placeholder="Select scope..."
|
placeholder={integrationAuthScopes.length === 0 ? "No scopes found." : "Select scope..."}
|
||||||
isDisabled={integrationAuthScopes.length === 0}
|
isDisabled={integrationAuthScopes.length === 0}
|
||||||
>
|
>
|
||||||
{integrationAuthScopes.length > 0 ? (
|
{integrationAuthScopes.length > 0 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user