crash fixes

This commit is contained in:
Victor committed 2024-01-17 21:06:55 -08:00
1 parent ae772bb83e
commit 60696c17a1
1 file changed
+2 -2
@@ -56,7 +56,7 @@ export default function AudioCard({
if (type === "media") {
coverImage = bucketConfig.getCdnUrl(data.public_bucket_path, 400, 100);
} else if (type === "weights") {
if (data.cover_image.maybe_cover_image_public_bucket_path) {
if (data?.cover_image?.maybe_cover_image_public_bucket_path) {
coverImage = bucketConfig.getCdnUrl(
data.cover_image.maybe_cover_image_public_bucket_path,
110,
@@ -145,7 +145,7 @@ export default function AudioCard({
src={coverImage}
height={110}
width={110}
coverIndex={data.cover_image.default_cover.image_index}
coverIndex={data?.cover_image?.default_cover?.image_index}
/>
)}