only add params to module if defined in update

This commit is contained in:
Joel Wetzell
2026-02-13 20:32:38 -06:00
parent e63ec90803
commit b416c9254b
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -73,7 +73,9 @@ export class ConfigComponent {
if (config && config.modules) {
config.modules[index].id = module.id;
config.modules[index].type = module.type;
config.modules[index].params = module.params;
if (module.params !== undefined) {
config.modules[index].params = module.params;
}
return {
...config,
modules: config.modules,