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(() => { const setSpawnRequestTableCallback = useCallback(() => {
if (spawnRequestTable) { if (spawnRequestTable) {
/* Refresh the unique key identified */ /* Refresh the unique key identified */
const tempTable = {...spawnRequestTable} as any; const tempTable = JSON.parse(JSON.stringify(spawnRequestTable));
delete tempTable.quickAccessName; delete tempTable.quickAccessName;
delete tempTable.unit.location; delete tempTable.unit.location;
delete tempTable.unit.altitude; delete tempTable.unit.altitude;

View File

@@ -238,7 +238,7 @@ module.exports = function (configLocation, viteProxy) {
/* Set default index */ /* Set default index */
if (viteProxy) { if (viteProxy) {
app.use( app.use(
"/vite", "/",
httpProxyMiddleware.createProxyMiddleware({ httpProxyMiddleware.createProxyMiddleware({
target: `http://localhost:8080/`, target: `http://localhost:8080/`,
ws: true, ws: true,