diff --git a/src/utils/lichess.tsx b/src/utils/lichess.tsx index 8f522c9d..7b4fb40f 100644 --- a/src/utils/lichess.tsx +++ b/src/utils/lichess.tsx @@ -110,11 +110,12 @@ export async function convertToNormalized( data: PositionGames ): Promise { return await Promise.all( - data.map(async (game) => { + data.map(async (game, i) => { const pgn = await getLichessGame(game.id); const { headers, root } = await parsePGN(pgn); const normalized: NormalizedGame = { ...headers, + id: i, white_id: 0, black_id: 0, event_id: 0,