fix: Units are spawned at 0,0

This commit is contained in:
Pax1601
2024-12-07 16:34:00 +01:00
parent f80321a267
commit a4452aee94
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ export function UnitSpawnMenu(props: {
const setSpawnRequestTableCallback = useCallback(() => {
if (spawnRequestTable) {
/* Refresh the unique key identified */
const tempTable = {...spawnRequestTable} as any;
const tempTable = JSON.parse(JSON.stringify(spawnRequestTable));
delete tempTable.quickAccessName;
delete tempTable.unit.location;
delete tempTable.unit.altitude;