Skip to content

Commit

Permalink
24.02.32: filters module restore accept default value [WTEL-4465]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed May 7, 2024
1 parent cecb51f commit eab2188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webitel/ui-sdk",
"version": "24.4.31",
"version": "24.4.32",
"private": false,
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Filters/store/FiltersStoreModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default class FiltersStoreModule extends BaseStoreModule {
// note: restore fn may still return value even if there's no query value
// from localStorage, for instance
const value = context.state[filter].restore
? context.state[filter].restore({ query })
? context.state[filter].restore({ query, defaultValue: context.state[filter].defaultValue })
: query;
if (value) {
if (filter
Expand Down

0 comments on commit eab2188

Please sign in to comment.