From 2e637262530ac4119dd40aa3dc17eccc395b39c7 Mon Sep 17 00:00:00 2001 From: alexandraRamanenka <60643585+alexandraRamanenka@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:06:05 +0200 Subject: [PATCH] FIO-7334: Fixes an issue where Radio values do not appear for Action Conditions settings (#5542) --- src/components/radio/Radio.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/components/radio/Radio.js b/src/components/radio/Radio.js index 5a97a65343..c7ca490196 100644 --- a/src/components/radio/Radio.js +++ b/src/components/radio/Radio.js @@ -48,6 +48,23 @@ export default class RadioComponent extends ListComponent { }; } + static get serverConditionSettings() { + return { + ...super.serverConditionSettings, + valueComponent(classComp) { + return { + type: 'select', + dataSrc: 'custom', + valueProperty: 'value', + dataType: classComp.dataType || '', + data: { + custom: `values = ${classComp && classComp.values ? JSON.stringify(classComp.values) : []}`, + }, + }; + }, + }; + } + static savedValueTypes(schema) { const { boolean, string, number, object, array } = componentValueTypes; const { dataType } = schema;