@bytebrand/fe-ui-core 4.0.259 → 4.0.260
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -58,8 +58,8 @@ const RangeControlled = ({
|
|
|
58
58
|
|
|
59
59
|
const getOptions = (options: any): Object[] =>
|
|
60
60
|
options.map((option: string) => ({
|
|
61
|
-
value: option
|
|
62
|
-
label: `${
|
|
61
|
+
value: `${option}`,
|
|
62
|
+
label: `${option}`
|
|
63
63
|
}));
|
|
64
64
|
|
|
65
65
|
const transformValues = (values: any): number[] => {
|
|
@@ -113,7 +113,7 @@ const RangeControlled = ({
|
|
|
113
113
|
|
|
114
114
|
const fromProps = {
|
|
115
115
|
size: 'custom',
|
|
116
|
-
value: from ?
|
|
116
|
+
value: from ? from : null,
|
|
117
117
|
label: `${t('filters.from')} €`,
|
|
118
118
|
onChange: (value: any) => onDropDownChange('from', value),
|
|
119
119
|
items: getOptions(sliceLessThan(getDropdownRange(name), to))
|
|
@@ -121,7 +121,7 @@ const RangeControlled = ({
|
|
|
121
121
|
|
|
122
122
|
const toProps = {
|
|
123
123
|
size: 'custom',
|
|
124
|
-
value: to ?
|
|
124
|
+
value: to ? to : null,
|
|
125
125
|
label: `${t('filters.to')} €`,
|
|
126
126
|
onChange: (value: any) => onDropDownChange('to', value),
|
|
127
127
|
items: getOptions(sliceMoreThan(getDropdownRange(name), from))
|