Fixing type checks

This commit is contained in:
Jesús Espino 2021-03-31 12:24:16 +02:00
parent 68fc79aca8
commit 3bf1b574bc

View file

@ -49,11 +49,12 @@ const Gallery = (props: Props): JSX.Element => {
return (
<div className='octo-table-body Gallery'>
{cards.map((card) => {
if (cardTrees[card.id]) {
const cardTree = cardTrees[card.id]
if (cardTree) {
return (
<GalleryCard
key={card.id + card.updateAt}
cardTree={cardTrees[card.id]}
cardTree={cardTree}
showCard={props.showCard}
/>
)