catch missing labels

This commit is contained in:
Gamebrary 2021-01-08 16:09:15 -07:00
parent c5a8c72e4c
commit 0d3e9ab123

View file

@ -24,7 +24,9 @@ export default {
options() {
return this.board.platforms.map((value) => {
const text = `${this.platformNames[value].name}`;
const text = this.platformNames[value] && this.platformNames[value].name
? `${this.platformNames[value].name}`
: `N/A Missing label for platform ${value}`;
return { text, value };
});