Pushkar Anand 4 anos atrás
pai
commit
437682a901
1 arquivos alterados com 2 adições e 2 exclusões
  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>;
 }