Skip to content

Commit

Permalink
Quick fix for a ')' missing in the liquid template typescript (#3253)
Browse files Browse the repository at this point in the history
* Fixing FormData generated for typescript should add the content array property in a foreach statement to handle correctly in the api.

* Quick fix for a ')' missing in the liquid template typescript

Co-authored-by: Felipe Borges <Felipe.Borges@fenergo.com>
  • Loading branch information
felipeprabor and Felipe Borges committed Jan 15, 2021
1 parent 1285916 commit 6532cd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -141,7 +141,7 @@ public async Task when_content_is_formdata_with_property_array_then_content_shou

//// Assert
Assert.Contains("const content_ = new FormData();", code);
Assert.Contains("arrayOfIds.forEach(item_ => content_.append(\"arrayOfIds\", item_.toString());", code);
Assert.Contains("arrayOfIds.forEach(item_ => content_.append(\"arrayOfIds\", item_.toString()));", code);
}
}
}
Expand Up @@ -60,7 +60,7 @@ else
{% elseif parameter.IsDateOrDateTime -%}
content_.append("{{ parameter.Name }}", {{ parameter.VariableName }}.toJSON());
{% elseif parameter.IsArray -%}
{{ parameter.VariableName }}.forEach(item_ => content_.append("{{ parameter.Name }}", item_.toString());
{{ parameter.VariableName }}.forEach(item_ => content_.append("{{ parameter.Name }}", item_.toString()));
{% else -%}
content_.append("{{ parameter.Name }}", {{ parameter.VariableName }}.toString());
{% endif -%}
Expand Down

0 comments on commit 6532cd0

Please sign in to comment.