Add available filters check back
Signed-off-by: Sarah Medeiros <smedeiros@wayfair.com>
This commit is contained in:
@@ -95,6 +95,10 @@ export const EntityLifecyclePicker = () => {
|
||||
}
|
||||
}, [queryParamLifecycles, availableLifecycles]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!availableLifecycles.length) setSelectedLifecycles([]);
|
||||
}, [availableLifecycles]);
|
||||
|
||||
if (!availableLifecycles.length) return null;
|
||||
|
||||
return (
|
||||
|
||||
@@ -99,6 +99,10 @@ export const EntityOwnerPicker = () => {
|
||||
}
|
||||
}, [queryParamOwners, availableOwners]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!availableOwners.length) setSelectedOwners([]);
|
||||
}, [availableOwners]);
|
||||
|
||||
if (!availableOwners.length) return null;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user