Fix bug with FilterDropdown on Tasks page

This commit is contained in:
Charles Bochet
2023-09-12 12:26:47 -07:00
parent 9b5e24105b
commit e23b8ecca1
3 changed files with 34 additions and 24 deletions

View File

@ -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)};

View File

@ -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}