From e0674cbe786825b028bb495d106b5be37abbbe36 Mon Sep 17 00:00:00 2001 From: robertoronderosjr Date: Fri, 28 Jan 2022 14:26:54 -0500 Subject: [PATCH] Fixing preview edition is nested under custom_fields, code needed to be updated --- utils/preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/preview.js b/utils/preview.js index 5765e6c8..faba8836 100644 --- a/utils/preview.js +++ b/utils/preview.js @@ -32,7 +32,7 @@ const saveProjectPreviewImage = async (_data) => { // Don't want to rely on "edition" for assuming index for (let index = 0; index < _data.length; index++) { const nft = _data[index]; - await loadImage(`${buildDir}/images/${nft.edition}.png`).then((image) => { + await loadImage(`${buildDir}/images/${nft.custom_fields.edition}.png`).then((image) => { previewCtx.drawImage( image, thumbWidth * (index % thumbPerRow),