From f7e631cd9f842758d2fad22933222bc21f46abd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20S=C5=82abek?= Date: Thu, 21 Nov 2024 18:25:49 +0100 Subject: [PATCH] fix spel template default expression (#7198) --- .../EditorPossibleValuesBasedDefaultValueDeterminer.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scenario-compiler/src/main/scala/pl/touk/nussknacker/engine/definition/component/parameter/defaults/EditorPossibleValuesBasedDefaultValueDeterminer.scala b/scenario-compiler/src/main/scala/pl/touk/nussknacker/engine/definition/component/parameter/defaults/EditorPossibleValuesBasedDefaultValueDeterminer.scala index 9add251b317..b1323d78997 100644 --- a/scenario-compiler/src/main/scala/pl/touk/nussknacker/engine/definition/component/parameter/defaults/EditorPossibleValuesBasedDefaultValueDeterminer.scala +++ b/scenario-compiler/src/main/scala/pl/touk/nussknacker/engine/definition/component/parameter/defaults/EditorPossibleValuesBasedDefaultValueDeterminer.scala @@ -4,6 +4,7 @@ import pl.touk.nussknacker.engine.api.definition.{ DictParameterEditor, DualParameterEditor, FixedValuesParameterEditor, + SpelTemplateParameterEditor, TabularTypedDataEditor } import pl.touk.nussknacker.engine.graph.expression.Expression.Language @@ -21,6 +22,8 @@ protected object EditorPossibleValuesBasedDefaultValueDeterminer extends Paramet Some(Expression.spel(firstValue.expression)) case TabularTypedDataEditor => Some(Expression.tabularDataDefinition(TabularTypedData.empty.stringify)) + case SpelTemplateParameterEditor => + Some(Expression.spelTemplate("")) case DictParameterEditor(_) => Some(Expression(Language.DictKeyWithLabel, "")) case _ => None }