diff --git a/packages/client/hmi-client/src/components/workflow/ops/calibrate-ensemble-ciemss/calibrate-ensemble-util.ts b/packages/client/hmi-client/src/components/workflow/ops/calibrate-ensemble-ciemss/calibrate-ensemble-util.ts index 106127396b..9388bbc6eb 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/calibrate-ensemble-ciemss/calibrate-ensemble-util.ts +++ b/packages/client/hmi-client/src/components/workflow/ops/calibrate-ensemble-ciemss/calibrate-ensemble-util.ts @@ -61,9 +61,7 @@ export function formatCalibrateModelConfigurations( rows.forEach((row) => { Object.entries(row.modelConfigurationMappings).forEach(([key, value]) => { if (!ensembleModelConfigMap[key]) return; - ensembleModelConfigMap[key].solutionMappings = { - [row.datasetMapping]: value - }; + ensembleModelConfigMap[key].solutionMappings[row.datasetMapping] = value; }); }); diff --git a/packages/client/hmi-client/src/components/workflow/ops/simulate-ensemble-ciemss/simulate-ensemble-util.ts b/packages/client/hmi-client/src/components/workflow/ops/simulate-ensemble-ciemss/simulate-ensemble-util.ts index 5642622f8f..7772a68e4b 100644 --- a/packages/client/hmi-client/src/components/workflow/ops/simulate-ensemble-ciemss/simulate-ensemble-util.ts +++ b/packages/client/hmi-client/src/components/workflow/ops/simulate-ensemble-ciemss/simulate-ensemble-util.ts @@ -24,9 +24,7 @@ export function formatSimulateModelConfigurations( rows.forEach((row) => { Object.entries(row.modelConfigurationMappings).forEach(([key, value]) => { if (!ensembleModelConfigMap[key]) return; - ensembleModelConfigMap[key].solutionMappings = { - [row.newName]: value - }; + ensembleModelConfigMap[key].solutionMappings[row.newName] = value; }); });