Fix permissions page list rendering (#6271)

This commit is contained in:
jdolle 2025-01-07 08:02:24 -08:00 committed by GitHub
parent 0565b2aacb
commit 356cef1d25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -150,19 +150,17 @@ export const PermissionScopeItem = <
: false;
return (
<>
<SelectItem
key={item.value}
value={item.value}
disabled={isDisabled}
data-cy={`select-option-${item.value}`}
>
{item.label}
{isDisabled ? (
<span className="block text-xs italic">Can't downgrade</span>
) : null}
</SelectItem>
</>
<SelectItem
key={item.value}
value={item.value}
disabled={isDisabled}
data-cy={`select-option-${item.value}`}
>
{item.label}
{isDisabled ? (
<span className="block text-xs italic">Can't downgrade</span>
) : null}
</SelectItem>
);
})}
</SelectContent>