diff --git a/corehq/apps/app_manager/fields.py b/corehq/apps/app_manager/fields.py index a9296e82a0ec..557876f07b09 100644 --- a/corehq/apps/app_manager/fields.py +++ b/corehq/apps/app_manager/fields.py @@ -430,7 +430,8 @@ def _all_forms(self): if 'app' in form: form['has_app'] = True forms.append(form) - else: + elif not self.domain_object.exports_use_elasticsearch: + # If the elasticsearch toggle is on, we don't care about forms without apps app_id = f['key'][1] or '' form['app'] = { 'id': app_id