Skip to content

Commit 1776faf

Browse files
committed
fix html
1 parent 97f6a41 commit 1776faf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Chapter 06/myProject/Sources/App/Framework/Form/Templates/Html/FormTemplate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct FormTemplate: TemplateRepresentable {
2222
.class("error")
2323
}
2424
}
25-
context.fields.map { field in
25+
for field in context.fields {
2626
Section {
2727
field.render(req)
2828
}

Chapter 07/myProject/Sources/App/Framework/Form/Templates/Html/FormTemplate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct FormTemplate: TemplateRepresentable {
2222
.class("error")
2323
}
2424
}
25-
context.fields.map { field in
25+
for field in context.fields {
2626
Section {
2727
field.render(req)
2828
}

Chapter 08/myProject/Sources/App/Framework/Form/Templates/Html/FormTemplate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct FormTemplate: TemplateRepresentable {
2222
.class("error")
2323
}
2424
}
25-
context.fields.map { field in
25+
for field in context.fields {
2626
Section {
2727
field.render(req)
2828
}

0 commit comments

Comments
 (0)