Fix bug with FilterDropdown on Tasks page
This commit is contained in:
@ -33,6 +33,10 @@ export function FilterDropdownButton({
|
||||
const hasOnlyOneEntityFilter =
|
||||
availableFilters.length === 1 && availableFilters[0].type === 'entity';
|
||||
|
||||
if (!availableFilters.length) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
return hasOnlyOneEntityFilter ? (
|
||||
<SingleEntityFilterDropdownButton
|
||||
context={context}
|
||||
|
||||
Reference in New Issue
Block a user