Fairoj : extras keys added for covid 19 ques
This commit is contained in:
parent
e705d273e0
commit
f1b7fc4261
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user