mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-08 06:48:58 +00:00
use cloneDeep when updating routes and modules
This commit is contained in:
@@ -138,10 +138,9 @@ export class ConfigService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currentlyShownConfig.set({
|
currentConfig.modules = cloneDeep(modules);
|
||||||
...currentConfig,
|
|
||||||
modules: modules,
|
this.updateCurrentlyShownConfig(currentConfig);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateRoutes(routes: RouteConfig[]) {
|
updateRoutes(routes: RouteConfig[]) {
|
||||||
@@ -151,9 +150,8 @@ export class ConfigService {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currentlyShownConfig.set({
|
currentConfig.routes = cloneDeep(routes);
|
||||||
...currentConfig,
|
|
||||||
routes: routes,
|
this.updateCurrentlyShownConfig(currentConfig);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user