Skip to content

Commit

Permalink
fix(cht-conf-test-harness#239): update contact saver to fix error(#8575)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell authored Sep 25, 2023
1 parent 5634ea0 commit c163949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/js/enketo/contact-saver.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const prepareAndAttachSiblingDocs = (extractLineageService, dbService, doc, orig
};

const prepareRepeatedDocs = (extractLineageService, doc, repeated) => {
const childData = repeated ? repeated.child_data : [];
const childData = repeated && repeated.child_data || [];
return childData.map(child => {
child.parent = extractLineageService.extract(doc);
return prepare(child);
Expand Down

0 comments on commit c163949

Please sign in to comment.