Skip to content

Commit 423fd1c

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 423fd1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ 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 -> runTemplate.id == existingScenario.runTemplateId }
762762
val runTemplateParametersIds =
763763
solution
764764
?.parameterGroups

0 commit comments

Comments
 (0)