Skip to content

Commit f2f20f6

Browse files
committed
Fix issue with conditional questions
1 parent 6c43b68 commit f2f20f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/FlowForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@
319319
320320
if (children) {
321321
children
322-
.filter(q => q.type && q.type.name.indexOf('Question') !== -1)
322+
.filter(q => q.type && typeof q.type === 'object' && q.type.name.indexOf('Question') !== -1)
323323
.forEach(q => {
324324
const props = q.props
325325
const componentInstance = this.getInstance(props.id)

0 commit comments

Comments
 (0)