Skip to content

Commit 91f3b38

Browse files
committed
Fix visualization of steps with no questions
1 parent ea2a9a4 commit 91f3b38

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
@for (row of rows; track row; let fieldRow = $index) {
2-
<div class="row">
3-
@for (field of row | orderBy:'x' ;let fieldCol = $index; track field) {
4-
@if (field.enabled) {
5-
<div [ngClass]="fieldUtilitiesService.getClass(field, row.length)">
6-
<src-form-field-inputs [fileUploadUrl]="fileUploadUrl" (notifyFileUpload)="notifyFileUpload.emit()" [fieldEntry] = fieldEntry [identity_provided]=identity_provided [uploads]="uploads" [entry]="entry" [fields]="fields" [step]="step" [displayErrors]="displayErrors" [index]="index" [submission]="submission" [answers]="answers" [stepId]="stepId" [fieldCol]="fieldCol" [fieldRow]="fieldRow" [field]="field"></src-form-field-inputs>
7-
</div>
1+
@if (rows.length) {
2+
@for (row of rows; track row; let fieldRow = $index) {
3+
<div class="row">
4+
@for (field of row | orderBy:'x' ;let fieldCol = $index; track field) {
5+
@if (field.enabled) {
6+
<div [ngClass]="fieldUtilitiesService.getClass(field, row.length)">
7+
<src-form-field-inputs [fileUploadUrl]="fileUploadUrl" (notifyFileUpload)="notifyFileUpload.emit()" [fieldEntry] = fieldEntry [identity_provided]=identity_provided [uploads]="uploads" [entry]="entry" [fields]="fields" [step]="step" [displayErrors]="displayErrors" [index]="index" [submission]="submission" [answers]="answers" [stepId]="stepId" [fieldCol]="fieldCol" [fieldRow]="fieldRow" [field]="field"></src-form-field-inputs>
8+
</div>
9+
}
810
}
9-
}
10-
</div>
11-
}
11+
</div>
12+
}
13+
}

0 commit comments

Comments
 (0)