From 9d65d34dba22695abc4b1c5af149c9b8daab51ea Mon Sep 17 00:00:00 2001 From: olaszakos Date: Tue, 31 Oct 2023 10:13:45 +0100 Subject: [PATCH] fix /ecosystem page crash (#2095) --- showcase.json | 14 +------------- src/pages/ecosystem.tsx | 4 ++-- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/showcase.json b/showcase.json index 74da62b725..3282735504 100644 --- a/showcase.json +++ b/showcase.json @@ -2828,19 +2828,7 @@ "submittableId": "35648608", "videoContentType": "video/mp4" }, - { - "id": "fishverse", - "name": "FishVerse", - "description": "FishVerse is a revolutionary W2E fishing game that is open world, decentralized and built on ICP technology. It brings together fishing and GameFi enthusiasts inside of a vibrant community where people can monetize by catching and utilizing NFT fishes, competing in tournaments, missions, providing services and more...", - "website": "https://thefishverse.com/", - "logo": "/img/showcase/fishverse_logo.webp", - "screenshots": [ - "/img/showcase/fishverse_screenshot.webp" - ], - "video": "/img/showcase/canister-store_video.mp4", - "videoContentType": "video/mp4", - "submittableId": "35750450" - }, + { "id": "Faceless", "name": "Faceless Project", diff --git a/src/pages/ecosystem.tsx b/src/pages/ecosystem.tsx index 1f90e31122..52d785aaa2 100644 --- a/src/pages/ecosystem.tsx +++ b/src/pages/ecosystem.tsx @@ -295,7 +295,7 @@ function ShowcasePage(): JSX.Element { let filteredProjects = projects; if (queryTagInitialized && queryTag?.length > 0) { filteredProjects = filteredProjects.filter((p) => - p.tags.find((tag) => tag == queryTag) + (p.tags || []).find((tag) => tag == queryTag) ); } setFilteredProjects(sortDesktopProjects(filteredProjects)); @@ -335,7 +335,7 @@ function ShowcasePage(): JSX.Element { {projects.length} - {tags.map(([tag, count]) => ( + {(tags || []).map(([tag, count]) => ( setQueryTag(tag)}