catalog-react: hide EntityOwnerPicker if user or group kind is selected
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -119,6 +119,14 @@ export const EntityOwnerPicker = () => {
|
||||
});
|
||||
}, [selectedOwners, updateFilters]);
|
||||
|
||||
if (
|
||||
['user', 'group'].includes(
|
||||
filters.kind?.value.toLocaleLowerCase('en-US') || '',
|
||||
)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Box pb={1} pt={1}>
|
||||
<Typography variant="button" component="label">
|
||||
|
||||
Reference in New Issue
Block a user