openchs-models 1.33.41 → 1.33.42
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.
|
@@ -204,7 +204,7 @@ class FormElement extends _BaseEntity.default {
|
|
|
204
204
|
getAnswers() {
|
|
205
205
|
const allAnswers = this.concept.getAnswers();
|
|
206
206
|
if (!_lodash.default.isEmpty(this.answersToShow)) {
|
|
207
|
-
return _lodash.default.filter(allAnswers, allConceptAnswer => _lodash.default.
|
|
207
|
+
return _lodash.default.filter(allAnswers, allConceptAnswer => _lodash.default.includes(this.answersToShow, allConceptAnswer.concept.name));
|
|
208
208
|
} else {
|
|
209
209
|
const excludedAnswers = this.excludedAnswers().map(conceptName => ({
|
|
210
210
|
concept: {
|