We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f522b4 commit b32ff1bCopy full SHA for b32ff1b
build.mjs
@@ -84,7 +84,7 @@ try {
84
85
const assetData = await Promise.all(assetIDs.map(getAssetInformationById));
86
87
- assetData.forEach((asset) => {
+ assetData.filter((asset) => asset.id).forEach((asset) => {
88
ASSET_MAP.set(asset.id, asset);
89
ASSET_ICON_MAP.set(asset.id, asset.logo.png);
90
});
@@ -213,6 +213,6 @@ async function getAssetInformationById(id) {
213
};
214
} catch (error) {
215
console.error(error);
216
- throw new Error(`Failed to fetch information for asset #${id}`);
+ return {};
217
}
218
0 commit comments