Skip to content

Commit

Permalink
Fixes FilterModal not rerendering when selected attributeToFilter is …
Browse files Browse the repository at this point in the history
…changed
  • Loading branch information
eireland committed Jan 25, 2024
1 parent 0042b2e commit 5010573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/attribute-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const AttributeFilter = () => {
{(attributeToFilter && showFilterModal) &&
<FilterModal attr={attributeToFilter} setShowFilterModal={setShowFilterModal} position={filterModalPosition}
setFilterModalPosition={setFilterModalPosition} targetFilterBottom={targetFilterBottom}
key={attributeToFilter.name}
/>}
</div>
);
Expand Down

0 comments on commit 5010573

Please sign in to comment.