Collection Page displays blank page.

 avatar
{"ops":[{"insert":"After adding some cards to my collection, the collection page no longer loads. Looking at the console, I believe this is due to the cards I added not being released yet, and therefore not having prices (making them null). However that is just my best guess. The error is copied below:\n\nTypeError: Cannot read properties of null (reading 'toFixed')\n  at n.getPrice (Price.ts:20:45)\n  at n.getPriceStringAndUrl (Price.ts:39:19)\n  at t.value (CardRow.jsx:159:28)\n  at Fa (react-dom.production.min.js:182:192)\n  at za (react-dom.production.min.js:181:224)\n  at ws (react-dom.production.min.js:263:490)\n  at dl (react-dom.production.min.js:246:265)\n  at fl (react-dom.production.min.js:246:194)\n  at rl (react-dom.production.min.js:239:172)\n  at react-dom.production.min.js:123:115\nns @ react-dom.production.min.js:209\n\nuncaught at TypeError: Cannot read properties of null (reading 'toFixed')\n  at n.getPrice (https://archidekt.com/static/js/bundle-1699530a430cc80d50d1.js:10:16465)\n  at n.getPriceStringAndUrl (https://archidekt.com/static/js/bundle-1699530a430cc80d50d1.js:10:16658)\n  at t.value (https://archidekt.com/static/js/bundle-1699530a430cc80d50d1.js:1:54065)\n  at Fa (https://archidekt.com/static/js/190-1699530a430cc80d50d1.js:2:916352)\n  at za (https://archidekt.com/static/js/190-1699530a430cc80d50d1.js:2:916147)\n  at ws (https://archidekt.com/static/js/190-1699530a430cc80d50d1.js:2:951628)\n  at dl (https://archidekt.com/static/js/190-1699530a430cc80d50d1.js:2:943103)\n  at fl (https://archidekt.com/static/js/190-1699530a430cc80d50d1.js:2:943028)\n  at rl (https://archidekt.com/static/js/190-1699530a430cc80d50d1.js:2:940058)\n  at https://archidekt.com/static/js/190-1699530a430cc80d50d1.js:2:891831\n"}]}
0
 avatar
{"ops":[{"insert":"Alrighty, looked into this. I copied your collection into an account I could test with, and the collection loaded totally fine for me 🥲.\n\nSo "},{"attributes":{"italic":true},"insert":"hopefully "},{"insert":"it is also fixed for your account, and it was a data thing that the importer sorted itself out around. If this is still happening let me know, and I can dig a bit further. \n\nSorry about the inconvenience! \n"}]}
0
 avatar
{"ops":[{"insert":"Yep it loads fine now! And actually, the cards that didn't have prices do now, so I wonder if it was fixed, or they just are no longer null? But thanks for the time!\n"}]}
0
 avatar
{"ops":[{"insert":"Certainly looks that way to me. Though normally there should be some amount of safe code around the price lookup to just set it to 0 if it's not there. \n\nBut that's plenty enough to look into it so tyty. \n"}]}
0
Support us on Patreon to remove ads