hide filter when only option is default
Signed-off-by: David An <a-daan@expediagroup.com>
This commit is contained in:
+3
@@ -121,6 +121,9 @@ export function EntityAutocompletePicker<
|
||||
return null;
|
||||
}
|
||||
|
||||
// hides picker if only option available is 'default'
|
||||
if (availableOptions.every(namespace => namespace === 'default')) return null;
|
||||
|
||||
return (
|
||||
<Box pb={1} pt={1}>
|
||||
<Typography variant="button" component="label">
|
||||
|
||||
Reference in New Issue
Block a user