@redocly/theme 0.18.3-patch.7 → 0.18.3-patch.8

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.
@@ -41,7 +41,7 @@ function Filter({ filter, filterValuesCasing, }) {
41
41
  react_1.default.createElement(FilterTitle, null,
42
42
  translate(filter.titleTranslationKey, filter.title),
43
43
  " "),
44
- filter.type === 'select' ? (react_1.default.createElement(StyledSelect, { value: (_a = filter.selectedOptions.values().next()) === null || _a === void 0 ? void 0 : _a.value, onChange: (value) => filter.selectOption(value), options: selectOptions })) : filter.type === 'date-range' ? (react_1.default.createElement(react_1.default.Fragment, null,
44
+ filter.type === 'select' ? (react_1.default.createElement(StyledSelect, { value: ((_a = filter.selectedOptions.values().next()) === null || _a === void 0 ? void 0 : _a.value) || '', onChange: (value) => filter.selectOption(value), options: selectOptions })) : filter.type === 'date-range' ? (react_1.default.createElement(react_1.default.Fragment, null,
45
45
  react_1.default.createElement(DatePickerWrapper, null,
46
46
  react_1.default.createElement("span", null, "From:"),
47
47
  react_1.default.createElement(react_date_picker_1.DatePicker, { closeCalendar: true, format: "y-MM-dd", dayPlaceholder: "DD", monthPlaceholder: "MM", yearPlaceholder: "YYYY", value: filter.selectedOptions.from ? new Date(filter.selectedOptions.from) : null, minDetail: "decade", maxDate: new Date(), onChange: (from) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.18.3-patch.7",
3
+ "version": "0.18.3-patch.8",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -62,7 +62,7 @@ export function Filter({
62
62
  <FilterTitle>{translate(filter.titleTranslationKey, filter.title)} </FilterTitle>
63
63
  {filter.type === 'select' ? (
64
64
  <StyledSelect
65
- value={(filter.selectedOptions as Set<any>).values().next()?.value}
65
+ value={(filter.selectedOptions as Set<any>).values().next()?.value || ''}
66
66
  onChange={(value) => filter.selectOption(value)}
67
67
  options={selectOptions}
68
68
  />