Skip to content

Commit

Permalink
fix spel template default expression (#7198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mslabek authored Nov 21, 2024
1 parent 383b4d5 commit fca1a27
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit fca1a27

Please sign in to comment.