Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Jul 22, 2024
1 parent 2232330 commit 9b34ed6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/client/src/commons/search/editor/FilterChips.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const FilterChips = ({ activeFilters, setFilter }: FilterChipsProps) => {
};

return (
<Box sx={{ marginBottom: "14px" }}>
<Box sx={{ marginBottom: activeFilters.length > 0 ? "14px" : undefined }}>
{activeFilters.map((filter, index) => {
const filterLabel = filter.key === "role" ? t("status") : t(filter.key);
return (
Expand Down
12 changes: 5 additions & 7 deletions src/client/src/commons/search/editor/filterComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,11 @@ class FilterComponent extends React.Component {
return (
<Stack direction="column" sx={{ height: "100%" }}>
<SideDrawerHeader title={t("searchfilters")} toggleDrawer={toggleDrawer} />
{this.state.activeFilters.length > 0 && (
<FilterChips
setPolygonSelectionEnabled={setPolygonSelectionEnabled}
activeFilters={this.state.activeFilters}
setFilter={setFilter}
/>
)}
<FilterChips
setPolygonSelectionEnabled={setPolygonSelectionEnabled}
activeFilters={this.state.activeFilters}
setFilter={setFilter}
/>
<Box sx={{ flexGrow: 1, overflow: "auto", scrollbarGutter: "stable" }}>
<Button
onClick={() => {
Expand Down

0 comments on commit 9b34ed6

Please sign in to comment.