Skip to content

Commit

Permalink
Produciton equivalent checks in prepareRepeatedDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed Sep 22, 2023
1 parent 5634ea0 commit 228a994
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 228a994

Please sign in to comment.