Browse Source

FIX | Fix filter taxonomies by search string

merge-requests/246/head
Oksana Stepanenko 3 years ago
parent
commit
04c4984145
  1. 3
      src/modules/taxonomies/smart-components/select-taxonomies-modal/index.tsx

3
src/modules/taxonomies/smart-components/select-taxonomies-modal/index.tsx

@ -92,7 +92,6 @@ export const SelectTaxonomiesModalSmart = () => { @@ -92,7 +92,6 @@ export const SelectTaxonomiesModalSmart = () => {
}
const confirm = () => {
console.log('selectedItem', selectedItem)
if (!_.isEmpty(selectedItem)) {
settingsRef.current.callback(selectedItem)
}
@ -106,7 +105,7 @@ export const SelectTaxonomiesModalSmart = () => { @@ -106,7 +105,7 @@ export const SelectTaxonomiesModalSmart = () => {
)
res.unshift(selectedItem as any)
return res
}, [taxonomies])
}, [taxonomies, items])
const renderItem = ({ item }) => {
const isActive = selectedItem?.id === item.id

Loading…
Cancel
Save