This commit is contained in:
sriram-at-840620226347 2020-07-29 19:01:05 +05:30
commit 02ee9d4771

View File

@ -384,7 +384,8 @@ export class QueriesDocsComponent implements OnInit {
if(this.questions_JSON.questions.length > 0) { if(this.questions_JSON.questions.length > 0) {
let geneatedQues = this.questions_JSON.questions.filter(val=>val.is_repeatable != '1').map(vv=>{ let geneatedQues = this.questions_JSON.questions.filter(val=>val.is_repeatable != '1').map(vv=>{
return {question_key:vv.question_key,question:vv.question,is_repeatable:'0',type:vv.type} return {question_key:vv.question_key,question:vv.question,is_repeatable:'0',type:vv.type ,is_subfield:vv.hasOwnProperty('is_subfield') ? vv.is_subfield : '0'
,parent_question_key:vv.hasOwnProperty('parent_question_key') ? vv.parent_question_key : ''}
}) })
let covidFormAnswers = this.covid19QuesForm.getRawValue() let covidFormAnswers = this.covid19QuesForm.getRawValue()
covidFormAnswers.question_info = geneatedQues covidFormAnswers.question_info = geneatedQues