Skip to content

Commit

Permalink
fix: fix crash when starting new search after using custom attribute …
Browse files Browse the repository at this point in the history
…search

#572
  • Loading branch information
stdavis committed Feb 13, 2024
1 parent 5d4c0e4 commit c57b376
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/search-wizard/AdvancedFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ export default function AdvancedFilter({ visible }) {
]);

const getFilterComponent = (filterType) => {
if (!filterTypes[filterType]) {
console.warn(`No filter type found for ${filterType}`);

return null;
}
const { Component, props } = filterTypes[filterType];

return <Component send={send} {...props} />;
Expand Down

0 comments on commit c57b376

Please sign in to comment.