Skip to content

Commit

Permalink
[Bug][Seatunnel-web][Addendum] Escape seatunnel-web placeholders (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadmohammad authored Oct 16, 2024
1 parent fe09845 commit 8902116
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ public static FormStructure wrapper(
return FormOptionSort.sortFormStructure(formStructureBuilder.build());
}

private static Object getDefaultValue(Option<?> option) {
private static String getDefaultValue(Option<?> option) {
Object defValue = option.defaultValue();
if (defValue == null) {
return null;
}
if (String.class.equals(option.typeReference().getType())) {
return PlaceholderUtil.escapePlaceholders(defValue.toString());
}
return defValue;
return defValue.toString();
}

private static List<AbstractFormOption> wrapperOptionOptions(
Expand Down

0 comments on commit 8902116

Please sign in to comment.