From 5f210b2b064d7b63c23bf7c140e7fd07f5783a14 Mon Sep 17 00:00:00 2001 From: Anton K Date: Mon, 25 Nov 2024 14:11:10 +0100 Subject: [PATCH] FIO-9327 Fixed unintentional setting of defaultValue for Select Boxes --- src/components/selectboxes/SelectBoxes.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/selectboxes/SelectBoxes.js b/src/components/selectboxes/SelectBoxes.js index 6919738b63..64e7416543 100644 --- a/src/components/selectboxes/SelectBoxes.js +++ b/src/components/selectboxes/SelectBoxes.js @@ -77,12 +77,7 @@ export default class SelectBoxesComponent extends RadioComponent { } get emptyValue() { - return this.component.values.reduce((prev, value) => { - if (value.value) { - prev[value.value] = false; - } - return prev; - }, {}); + return {}; } get defaultValue() { @@ -307,7 +302,7 @@ export default class SelectBoxesComponent extends RadioComponent { return super.setCustomValidity(_.filter(messages, (message) => message.ruleName !=='invalidValueProperty'), dirty, external); } else { return super.setCustomValidity(messages, dirty, external); - }; + } } validateValueAvailability(setting, value) {