mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-04-25 15:57:50 -05:00
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:
parent
452fb89e00
commit
b3f39bfdce
|
|
@ -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);
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user