Clean up ternary

Signed-off-by: Sarah Medeiros <smedeiros@wayfair.com>
This commit is contained in:
Sarah Medeiros
2022-12-19 10:12:29 -05:00
parent 2bce511a10
commit c37b9e4c68
@@ -93,9 +93,10 @@ export const EntityTagPicker = (props: EntityTagPickerProps) => {
}, [queryParamTags]);
useEffect(() => {
const tags = Object.keys(availableTags ?? {});
updateFilters({
tags:
selectedTags.length && Object.keys(availableTags ?? {}).length
selectedTags.length && tags.length
? new EntityTagFilter(selectedTags)
: undefined,
});