add id to BattleReplay

This commit is contained in:
taDuc
2026-05-17 22:01:09 +07:00
parent 047f662736
commit c09928a2b2
7 changed files with 23 additions and 1 deletions
+1
View File
@@ -1885,6 +1885,7 @@ function normalizeReplaysForCompare(input: BattleReplay[] | null | undefined) {
return list
.filter((replay) => replay && typeof replay.geometry_id === "string" && replay.geometry_id.trim().length > 0)
.map((replay) => ({
id: typeof replay.id === "string" ? replay.id : replay.geometry_id,
geometry_id: replay.geometry_id,
target_geometry_ids: normalizeReplayTargetGeometryIdsForCompare(
replay.target_geometry_ids,