From 0664de71a9f16ac9b7c82c1f5ac3e23be287b856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Fri, 25 Oct 2024 15:32:42 +0200 Subject: [PATCH] Show record field options on record block if no fields selected but record field exists --- .../src/components/PageBlocks/RecordConfigurator.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/web/compose/src/components/PageBlocks/RecordConfigurator.vue b/client/web/compose/src/components/PageBlocks/RecordConfigurator.vue index 161b6d17d..23a40abf4 100644 --- a/client/web/compose/src/components/PageBlocks/RecordConfigurator.vue +++ b/client/web/compose/src/components/PageBlocks/RecordConfigurator.vue @@ -118,7 +118,7 @@ f.kind === 'Record') + isRecordFieldUsedConfigured () { + if (this.options.fields.length === 0) { + return this.module.fields.some(f => f.kind === 'Record') + } else { + return this.options.fields.some(f => f.kind === 'Record') + } }, },