mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-10-26 10:20:54 +03:00
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:
parent
f775580dc9
commit
de2cdc70d8
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user