Fix bug with FilterDropdown on Tasks page
This commit is contained in:
@ -20,7 +20,7 @@ const StyledContainer = styled.div`
|
||||
padding: 8px 24px;
|
||||
`;
|
||||
|
||||
const StyledTitleBar = styled.h3`
|
||||
const StyledTitleBar = styled.div`
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: ${({ theme }) => theme.spacing(4)};
|
||||
|
||||
@ -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