Skip to content

Commit 5059c5c

Browse files
colinrotherhampaulrobertlloyd
authored andcommitted
Fix data generation empty moves
1 parent a0297de commit 5059c5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/move.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class Move {
100100
* @static
101101
*/
102102
static findAll(context) {
103-
return Object.values(context.moves)
103+
return Object.values(context?.moves ?? {})
104104
.map((move) => new Move(move, context))
105105
.filter((move) => !move.ignored)
106106
.sort((a, b) => getDateValueDifference(a.createdAt, b.createdAt))

0 commit comments

Comments
 (0)