openchs-models 1.30.55 → 1.30.57

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.
@@ -248,7 +248,7 @@ class ObservationsHolder {
248
248
 
249
249
  updatePrimitiveCodedObs(applicableFormElements, formElementStatuses) {
250
250
  const updateQuestionGroupObs = (parentFormElement, questionGroupIndex, fe, value) => {
251
- parentFormElement.repeatable ? this.updateRepeatableGroupQuestion(questionGroupIndex, parentFormElement, fe, value) : this.updateGroupQuestion(parentFormElement, fe, value);
251
+ parentFormElement && parentFormElement.repeatable ? this.updateRepeatableGroupQuestion(questionGroupIndex, parentFormElement, fe, value) : this.updateGroupQuestion(parentFormElement, fe, value);
252
252
  };
253
253
 
254
254
  applicableFormElements.forEach(fe => {
@@ -359,6 +359,10 @@ class ObservationsHolder {
359
359
  }
360
360
 
361
361
  updateGroupQuestion(parentFormElement, childFormElement, value, verified = false, skipVerification = false) {
362
+ if (_lodash.default.isUndefined(parentFormElement) || _lodash.default.isNull(parentFormElement)) {
363
+ return;
364
+ }
365
+
362
366
  const parentConcept = parentFormElement.concept;
363
367
  const parentObservation = this.getObservation(parentConcept);
364
368
  const childObservations = _lodash.default.isEmpty(parentObservation) ? new _QuestionGroup.default() : parentObservation.getValueWrapper();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openchs-models",
3
3
  "description": "OpenCHS data model to be used by front end clients",
4
- "version": "1.30.55",
4
+ "version": "1.30.57",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",