Skip to content

Commit 0cafa05

Browse files
committed
[SDCOSMO-2274] Scenario parameters are not saved
During patch run template id is not ensured to be present in query, so comparing to query value which can be null resulting in no run template to be found. Instead using the existing in store value ensure that we have the run template to look for.
1 parent 8c52903 commit 0cafa05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scenario/src/main/kotlin/com/cosmotech/scenario/service/ScenarioServiceImpl.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,9 @@ internal class ScenarioServiceImpl(
758758
solutionService.getVerifiedSolution(organizationId, it)
759759
}
760760
val runTemplate =
761-
solution?.runTemplates?.find { runTemplate -> runTemplate.id == scenario.runTemplateId }
761+
solution?.runTemplates?.find { runTemplate ->
762+
runTemplate.id == existingScenario.runTemplateId
763+
}
762764
val runTemplateParametersIds =
763765
solution
764766
?.parameterGroups

0 commit comments

Comments
 (0)