From 0fc02a46d181530272d71a82dbd1ad8aff158752 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Sun, 17 May 2026 22:34:33 -0500 Subject: [PATCH] use cloneDeep when updating routes and modules --- src/app/services/config.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/app/services/config.ts b/src/app/services/config.ts index 986ad60..511cb6f 100644 --- a/src/app/services/config.ts +++ b/src/app/services/config.ts @@ -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); } }