Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmits committed Sep 27, 2024
1 parent 9bf8f69 commit 57b9c2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (Array.isArray({{ Value }})) {
{{ Variable }} = [];
for (let item of {{ Value }})
{%- if IsArrayItemNewableObject -%}
{{ Variable }}.push(item.toJSON());
{{ Variable }}.push(item?.toJSON());
{%- elsif IsArrayItemDate -%}
{{ Variable }}.push({% if UseJsDate %}formatDate(item){% else %}item.{{ DateToStringCode }}{% endif %});
{%- elsif IsArrayItemDateTime -%}
Expand Down

0 comments on commit 57b9c2b

Please sign in to comment.