Fix a potential issue with Salmon Run mystery weapons

I'm not sure how mystery weapons will appear with the new JSON format, but this should prevent issues in case the base weapon object is set to null.
This commit is contained in:
Matt Isenhower 2018-06-14 08:58:10 -07:00
parent 452fb89e00
commit b3f39bfdce

View File

@ -38,7 +38,7 @@ export default {
},
weapons() {
if (this.schedule.weapons)
return this.schedule.weapons.map(w => w.weapon);
return this.schedule.weapons.map(w => w ? w.weapon : null);
},
},
}