Merge branch 'master' of https://bitbucket.org/sriramv18/sparqsineedge
This commit is contained in:
commit
02ee9d4771
@ -384,7 +384,8 @@ export class QueriesDocsComponent implements OnInit {
|
||||
|
||||
if(this.questions_JSON.questions.length > 0) {
|
||||
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()
|
||||
covidFormAnswers.question_info = geneatedQues
|
||||
|
||||
Loading…
Reference in New Issue
Block a user