Fix Some Images not showing

This commit is contained in:
Dragon Fire
2020-03-14 11:31:59 -04:00
parent 7ccbb843f7
commit 7118ec6492
+1
View File
@@ -71,6 +71,7 @@ module.exports = class RightStufCommand extends Command {
let current = item.itemimages_detail
while (!found) {
if (current.primary) found = current.primary.url;
if (current.urls) found = current.urls.url;
const key = Object.keys(current)[0];
if (!key) break;
current = current[key];