Skip to content

Commit

Permalink
Remove color mapping for nexus items for the time being
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Jun 6, 2017
1 parent 3e17497 commit e9e426e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,21 @@ class WarframeNexusStats {

if (!results.value || JSON.stringify(results.value) === '[]') {
resolve([this.settings.defaultString]);
}
}
this.nexusFetcher.getItemStats(results.value[0].name)
.then((queryResults) => {
if (Object.keys(queryResults).length > 0) {
componentsToReturn.push(new NexusItem(queryResults, `/${results.value[0].type}/${encodeURIComponent(results.value[0].name.replace(/\sPrime/ig, ''))}`));
}
return this.attachmentCreator.mapNexusColors(componentsToReturn);
resolve(componentsToReturn);
})
.then(components => resolve(components))
// eslint-disable-next-line no-console
.catch(console.error);
// .then(() => this.attachmentCreator.mapNexusColors(componentsToReturn))
// .then(components => resolve(components))
.catch((error) => {
// eslint-disable-next-line no-console
console.error(error);
resolve(componentsToReturn);
});
})
.catch(reject);
})
Expand Down

0 comments on commit e9e426e

Please sign in to comment.