console (fix): fix issue with permissions tab when metadata is in loading state

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9381
GitOrigin-RevId: 354d48fe69bfed42d4a4d4a8a1f8756c057cc8be
This commit is contained in:
Vijay Prasanna 2023-06-01 15:21:14 +05:30 committed by hasura-bot
parent 3ce1b414b4
commit 0d347c1a32

View File

@ -2072,7 +2072,7 @@ const PermissionsWrapper = props => {
const { data: source, isLoading: isLoadingMetadata } = useMetadata(
MetadataSelectors.findSource(props.currentSource)
);
const isBigQuery = source.kind === 'bigquery';
const isBigQuery = source?.kind === 'bigquery';
if (isFeatureFlagsLoading || isLoadingMetadata) return <div>Loading...</div>;