diff --git a/webapp/src/js/enketo/contact-saver.js b/webapp/src/js/enketo/contact-saver.js index 1bd0539988f..8c60aec48cd 100644 --- a/webapp/src/js/enketo/contact-saver.js +++ b/webapp/src/js/enketo/contact-saver.js @@ -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);