From a2f46987f7729cd1966eaa7a018d6d263941112f Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Tue, 25 Apr 2023 23:52:00 +0200 Subject: [PATCH] catalog-react: hide EntityOwnerPicker if user or group kind is selected Signed-off-by: Vincenzo Scamporlino --- .../components/EntityOwnerPicker/EntityOwnerPicker.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx b/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx index e5ca1b86f4..7eae97b73a 100644 --- a/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx +++ b/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx @@ -119,6 +119,14 @@ export const EntityOwnerPicker = () => { }); }, [selectedOwners, updateFilters]); + if ( + ['user', 'group'].includes( + filters.kind?.value.toLocaleLowerCase('en-US') || '', + ) + ) { + return null; + } + return (