Skip to content

Commit 1756614

Browse files
committed
Fix visualization of questions in case of missing field attribute multimedia_type
1 parent 22c1650 commit 1756614

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client/app/src/pages/whistleblower/form-field-input/form-field-input.component.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@
147147
}
148148
@case ('fieldgroup') {
149149
<div>
150-
<div>
151-
@switch (field.attrs.multimedia_type.value) {
150+
@switch (field.attrs.multimedia_type?.value) {
152151
@case ('image') {
153152
<div>
154153
<img alt="media" [src]="field.attrs.multimedia_url.value" />
@@ -169,7 +168,6 @@
169168
</div>
170169
}
171170
}
172-
</div>
173171
<src-form (notifyFileUpload)="notifyFileUpload.emit()" [identity_provided]="identity_provided" [fileUploadUrl] = fileUploadUrl [fieldEntry]="fieldEntry" [displayErrors]="displayErrors" [entry]="entry" [answers]="answers" [step]="rows" [submission]="submission" [index]="index" [uploads]="uploads"></src-form>
174172
</div>
175173
}

0 commit comments

Comments
 (0)