diff --git a/webapp/src/components/gallery/gallery.tsx b/webapp/src/components/gallery/gallery.tsx index cc107c187..939bc5cfd 100644 --- a/webapp/src/components/gallery/gallery.tsx +++ b/webapp/src/components/gallery/gallery.tsx @@ -49,11 +49,12 @@ const Gallery = (props: Props): JSX.Element => { return (
{cards.map((card) => { - if (cardTrees[card.id]) { + const cardTree = cardTrees[card.id] + if (cardTree) { return ( )