Skip to content

Commit e0674cb

Browse files
Fixing preview
edition is nested under custom_fields, code needed to be updated
1 parent d6ca8c3 commit e0674cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const saveProjectPreviewImage = async (_data) => {
3232
// Don't want to rely on "edition" for assuming index
3333
for (let index = 0; index < _data.length; index++) {
3434
const nft = _data[index];
35-
await loadImage(`${buildDir}/images/${nft.edition}.png`).then((image) => {
35+
await loadImage(`${buildDir}/images/${nft.custom_fields.edition}.png`).then((image) => {
3636
previewCtx.drawImage(
3737
image,
3838
thumbWidth * (index % thumbPerRow),

0 commit comments

Comments
 (0)