Open Sukalp-Rathore opened 11 months ago
for getting main image usethis - data?.attributes?.[selectedImg]?.data?.attributes?.url
rather than this - data?.attributes[selectedImg]?.data?.attributes?.url because it will throw error cannot read properties of image
for getting main image usethis - data?.attributes?.[selectedImg]?.data?.attributes?.url
rather than this - data?.attributes[selectedImg]?.data?.attributes?.url because it will throw error cannot read properties of image