openchs-models 1.30.64 → 1.30.67

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.
@@ -140,6 +140,7 @@ class FormElementGroup extends _BaseEntity.default {
140
140
  }
141
141
 
142
142
  addFormElement(formElement) {
143
+ formElement.formElementGroup = this;
143
144
  this.formElements.push(formElement);
144
145
  }
145
146
 
@@ -59,7 +59,9 @@ class RealmResultsProxy {
59
59
  }
60
60
 
61
61
  getAt(index) {
62
- return this.createEntity(this.realmCollection[index]);
62
+ const realmCollectionElement = this.realmCollection[index];
63
+ if (_lodash.default.isNil(realmCollectionElement)) return null;
64
+ return this.createEntity(realmCollectionElement);
63
65
  }
64
66
 
65
67
  forEach(callback, thisArg) {
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.64",
4
+ "version": "1.30.67",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",