fix permission builder dropdowns with single value

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10771
GitOrigin-RevId: b5a8b382c1ab5857906bd46bc073e89c0a52a4c0
This commit is contained in:
Rikin Kachhia 2024-04-18 18:19:06 +05:30 committed by hasura-bot
parent f775580dc9
commit de2cdc70d8

View File

@ -427,7 +427,7 @@ class PermissionBuilder extends React.Component<PermissionBuilderProps> {
selectDispatchFunc(e.target.value);
};
if (typeof values?.[1] !== 'string') {
if (typeof values?.[0] !== 'string') {
return (
<SelectGroup
selectDispatchFunc={selectDispatchFunc}