mirror of
https://github.com/romancm/gamebrary
synced 2024-11-10 13:44:16 +00:00
catch missing labels
This commit is contained in:
parent
c5a8c72e4c
commit
0d3e9ab123
1 changed files with 3 additions and 1 deletions
|
@ -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 };
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue