Pushkar Anand 4 vuotta sitten
vanhempi
commit
437682a901
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/pages/gallery/components/PreviewCard.tsx

+ 2 - 2
src/pages/gallery/components/PreviewCard.tsx

@@ -48,7 +48,7 @@ export default function PreviewCard(props: IProps) {
         }
         }
     }
     }
 
 
-    return <Cont onClick={handleClick} disabled={!data.src && !imgSrc}>
-        <img src={data.src || imgSrc} />
+    return <Cont onClick={handleClick} disabled={!data?.src && !imgSrc}>
+        <img src={data?.src || imgSrc} />
     </Cont>;
     </Cont>;
 }
 }