diff --git a/frontend/src/_ui/Select/SelectComponent.jsx b/frontend/src/_ui/Select/SelectComponent.jsx index 24f4ee86f6..2d62352000 100644 --- a/frontend/src/_ui/Select/SelectComponent.jsx +++ b/frontend/src/_ui/Select/SelectComponent.jsx @@ -31,11 +31,11 @@ export const SelectComponent = ({ options = [], value, onChange, closeMenuOnSele Array.isArray(options) && options.length === 0 ? options : options?.map((option) => { - if (!option.hasOwnProperty('label')) { - return _.mapKeys(option, (value, key) => (key === 'value' ? key : 'label')); - } - return option; - }); + if (!option.hasOwnProperty('label')) { + return _.mapKeys(option, (value, key) => (key === 'value' ? key : 'label')); + } + return option; + }); const currentValue = value ? selectOptions.find((option) => option.value === value) || value : defaultValue;