use cloneDeep when updating routes and modules

This commit is contained in:
Joel Wetzell
2026-05-17 22:34:33 -05:00
parent 55267ab4db
commit 0fc02a46d1
+6 -8
View File
@@ -138,10 +138,9 @@ export class ConfigService {
return;
}
this.currentlyShownConfig.set({
...currentConfig,
modules: modules,
});
currentConfig.modules = cloneDeep(modules);
this.updateCurrentlyShownConfig(currentConfig);
}
updateRoutes(routes: RouteConfig[]) {
@@ -151,9 +150,8 @@ export class ConfigService {
return;
}
this.currentlyShownConfig.set({
...currentConfig,
routes: routes,
});
currentConfig.routes = cloneDeep(routes);
this.updateCurrentlyShownConfig(currentConfig);
}
}