Skip to content

Commit

Permalink
Remove unnecessary div
Browse files Browse the repository at this point in the history
  • Loading branch information
eighttrigrams committed Nov 13, 2023
1 parent b44d11c commit 0d4cddc
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions web/ui/src/idai_field/filter/FieldFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,15 @@ export default function FieldFilters({ projectId, projectView, searchParams, fil
dropdownMap={ dropdownMap } />
{ filterValuesCount > 0 &&
<InputGroup>
<div>
<DropdownButton
id="field-filters-dropdown"
title={ shortenString(currentFilter[0] ? currentFilter[1] : t('fieldFilters.select')) }>
<DropdownItems
fields={ fields }
searchParams={ searchParams }
currentFilter={ currentFilter[0] }
setCurrentFilter={ setCurrentFilter } />
</DropdownButton>
</div>
<DropdownButton
id="field-filters-dropdown"
title={ shortenString(currentFilter[0] ? currentFilter[1] : t('fieldFilters.select')) }>
<DropdownItems
fields={ fields }
searchParams={ searchParams }
currentFilter={ currentFilter[0] }
setCurrentFilter={ setCurrentFilter } />
</DropdownButton>
{ currentFilter[0] && <>
{ dropdownMap[currentFilter[0]]
? <InnerDropdown
Expand Down

0 comments on commit 0d4cddc

Please sign in to comment.