|
|
|
@ -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 |
|
|
|
|