We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0297de commit 5059c5cCopy full SHA for 5059c5c
1 file changed
app/models/move.js
@@ -100,7 +100,7 @@ export class Move {
100
* @static
101
*/
102
static findAll(context) {
103
- return Object.values(context.moves)
+ return Object.values(context?.moves ?? {})
104
.map((move) => new Move(move, context))
105
.filter((move) => !move.ignored)
106
.sort((a, b) => getDateValueDifference(a.createdAt, b.createdAt))
0 commit comments