mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: Units are spawned at 0,0
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user