catalog-react: hide EntityOwnerPicker if user or group kind is selected

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-04-25 23:52:00 +02:00
parent cb4c15989b
commit a2f46987f7
@@ -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">