Skip to content

Commit

Permalink
fix extra end statement in non modular FormTyping scriban file
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Jul 28, 2023
1 parent b456f0d commit 23e0e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Serenity.Net.CodeGenerator/Templates/FormTyping.scriban
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


namespace {{ModuleNamespace}} {
export interface {{FormClassName}} {
{{~for x in FormFields~}}
Expand All @@ -11,7 +11,7 @@ namespace {{ModuleNamespace}} {
}

[{{for x in FormFields}}{{if !for.first}},{{end}}
['{{x.PropertyName}}', () => Serenity.{{x.TSEditorType}}]{{end}}{{end}}
['{{x.PropertyName}}', () => Serenity.{{x.TSEditorType}}]{{end}}
].forEach(x => Object.defineProperty({{FormClassName}}.prototype, <string>x[0], {
get: function () {
return this.w(x[0], (x[1] as any)());
Expand Down

0 comments on commit 23e0e51

Please sign in to comment.