@dmptool/utils 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/maDMP.js +2 -2
- package/package.json +1 -1
package/dist/maDMP.js
CHANGED
|
@@ -397,7 +397,7 @@ const loadNarrativeTemplateInfo = async (rdsConnectionParams, planId) => {
|
|
|
397
397
|
};
|
|
398
398
|
narrative.section.push(curSection);
|
|
399
399
|
}
|
|
400
|
-
const hasAnswer = row.
|
|
400
|
+
const hasAnswer = row.answerJSON !== undefined && row.answerJSON !== null;
|
|
401
401
|
// Every row in the results represents a single question/answer pair
|
|
402
402
|
curSection.question.push({
|
|
403
403
|
id: row.questionId,
|
|
@@ -406,7 +406,7 @@ const loadNarrativeTemplateInfo = async (rdsConnectionParams, planId) => {
|
|
|
406
406
|
answer: hasAnswer
|
|
407
407
|
? {
|
|
408
408
|
id: row.answerId,
|
|
409
|
-
json:
|
|
409
|
+
json: row.answerJSON
|
|
410
410
|
}
|
|
411
411
|
: undefined
|
|
412
412
|
});
|
package/package.json
CHANGED