From cea1116732d8cd52170d7070dc8465193b200101 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 1 Aug 2024 08:42:45 +0000 Subject: [PATCH] fix page crash --- src/components/Visualizations/Table/HeroFacet.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Visualizations/Table/HeroFacet.jsx b/src/components/Visualizations/Table/HeroFacet.jsx index 6cfb08c533..140efd5292 100644 --- a/src/components/Visualizations/Table/HeroFacet.jsx +++ b/src/components/Visualizations/Table/HeroFacet.jsx @@ -153,7 +153,7 @@ class HeroFacet extends React.Component { if (!(heroID && facet)) return null; - const selectedFacet = heroAbilities[heroes[heroID].name]?.facets[facet - 1]; + const selectedFacet = heroAbilities[heroes[heroID].name]?.facets[facet - 1] ?? {}; const { color, gradient_id, icon, name } = selectedFacet; const imageURL = `${config.VITE_IMAGE_CDN}/apps/dota2/images/dota_react/icons/facets/${icon}.png`;