Deep copy merged_history, also just in case

This commit is contained in:
Vitaliy Filippov
2026-05-11 16:14:03 +03:00
parent 14b22f2ba9
commit 36d2b56208
+1 -1
View File
@@ -84,7 +84,7 @@ function scale_pg_history(prev_pg_history, prev_pgs, new_pgs)
finish_pg_history(merged_history[1]);
for (let i = 0; i < new_pg_count; i++)
{
new_pg_history[i] = { ...merged_history[1] };
new_pg_history[i] = JSON.parse(JSON.stringify(merged_history[1]));
}
}
// Mark history keys for removed PGs as removed