@openmrs/ngx-formentry 3.2.1-pre.228 → 3.2.1-pre.232

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.
@@ -14379,11 +14379,16 @@
14379
14379
  break;
14380
14380
  case 'repeating':
14381
14381
  if (formNode.children) {
14382
- for (var node in formNode.children) {
14382
+ var _loop_1 = function (node) {
14383
14383
  var question = formNode.children[node].question;
14384
- if (question.extras && question.extras.type === 'diagnosis') {
14385
- this.formDiagnosisNodes.push(formNode.children[node]);
14384
+ var index = formNode.children[node].nodeIndex;
14385
+ if (question.extras && question.extras.type === 'diagnosis' && !this_1.formDiagnosisNodes.some(function (x) { return index === x.nodeIndex; })) {
14386
+ this_1.formDiagnosisNodes.push(formNode.children[node]);
14386
14387
  }
14388
+ };
14389
+ var this_1 = this;
14390
+ for (var node in formNode.children) {
14391
+ _loop_1(node);
14387
14392
  }
14388
14393
  }
14389
14394
  break;