bug: don't break if game.players is null
This commit is contained in:
parent
b25adb6aa6
commit
95db3c83aa
@ -17,6 +17,7 @@ export const usePlayersStore = defineStore('PlayersStore', {
|
||||
},
|
||||
actions: {
|
||||
setPlayers(players: Players): void {
|
||||
players = players || []
|
||||
this.players.splice(0, this.players.length, ...players)
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user