Skip to content

Commit 9bbdf71

Browse files
authored
chore: simplify javascript example (#5050)
1 parent 17be393 commit 9bbdf71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

articles/flow/component-internals/element-api/calling-javascript.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ public void complete() {
8383
[source,java]
8484
----
8585
public void setItems(List<String> items) {
86-
ArrayNode array = JacksonUtils.listToJson(items);
87-
getElement().executeJs("this.items = $0", array);
86+
getElement().executeJs("this.items = $0", items);
8887
}
8988
----
9089
====

0 commit comments

Comments
 (0)