From c01097ceab021c0f829a9c395407998372bfdf9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harouna=20Traor=C3=A9?= Date: Thu, 27 Jul 2023 13:37:21 +0200 Subject: [PATCH] conditional fields are not available in AposRelationshipEditor --- .../@apostrophecms/modal/ui/apos/mixins/AposModalTabsMixin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/@apostrophecms/modal/ui/apos/mixins/AposModalTabsMixin.js b/modules/@apostrophecms/modal/ui/apos/mixins/AposModalTabsMixin.js index ce0f2ba9da..731c25819c 100644 --- a/modules/@apostrophecms/modal/ui/apos/mixins/AposModalTabsMixin.js +++ b/modules/@apostrophecms/modal/ui/apos/mixins/AposModalTabsMixin.js @@ -46,7 +46,8 @@ export default { const tabs = []; for (const key in this.groups) { if (key !== 'utility') { - const conditionalFields = this.conditionalFields('other'); + // AposRelationshipEditor does not implement AposEditorMixin with the function conditionalFields + const conditionalFields = this.conditionalFields?.('other') || []; const fields = this.groups[key].fields; tabs.push({ name: key,