diff --git a/www/src/components/marketplace/MarketplaceSidebar.tsx b/www/src/components/marketplace/MarketplaceSidebar.tsx index 3e9855778..ebcc400e4 100644 --- a/www/src/components/marketplace/MarketplaceSidebar.tsx +++ b/www/src/components/marketplace/MarketplaceSidebar.tsx @@ -9,6 +9,7 @@ import styled from 'styled-components' import { useCategoriesQuery, useTagsQuery } from '../../generated/graphql' import { useFetchPaginatedData } from '../utils/useFetchPaginatedData' +import { mapExistingNodes } from '../../utils/graphql' const SIDEBAR_WIDTH = 256 - 32 @@ -247,6 +248,8 @@ function MarketplaceSidebar({ isOpen }: { isOpen: boolean }) { const [search, setSearch] = useState('') + const tags = useMemo(() => mapExistingNodes(data?.tags) ?? [], [data]) + if (!categoriesData) return null const filteredCategories = categoriesData.categories?.filter( @@ -258,7 +261,7 @@ function MarketplaceSidebar({ isOpen }: { isOpen: boolean }) {