diff --git a/src/components/catalog/CatalogView.tsx b/src/components/catalog/CatalogView.tsx index 6201c33..463814b 100644 --- a/src/components/catalog/CatalogView.tsx +++ b/src/components/catalog/CatalogView.tsx @@ -71,25 +71,29 @@ export const CatalogView: FC<{}> = props => { isVisible && setIsVisible(false) } /> - - { rootNode && (rootNode.children.length > 0) && rootNode.children.map(child => - { - if(!child.isVisible) return null; - - return ( - - { - if(searchResult) setSearchResult(null); - - activateNode(child); - } } > - - { GetConfiguration('catalog.tab.icons') && } - { child.localization } - - - ); - }) } + + {rootNode && + rootNode.children.length > 0 && + rootNode.children.map((child, index) => { + if (!child.isVisible) return null; + // Generate a unique key using the index of the map function + const uniqueKey = `${child.pageId}-${index}`; + return ( + { + if (searchResult) setSearchResult(null); + activateNode(child); + }} + > + + {GetConfiguration('catalog.tab.icons') && } + {child.localization} + + + ); + })}