From eab2188d6bf23b7a87eb4eec38e5e891b410c363 Mon Sep 17 00:00:00 2001 From: dlohvinov Date: Tue, 7 May 2024 21:44:59 +0300 Subject: [PATCH] 24.02.32: filters module restore accept default value [WTEL-4465] --- package.json | 2 +- src/modules/Filters/store/FiltersStoreModule.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1b181f6d4..10a193556 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@webitel/ui-sdk", - "version": "24.4.31", + "version": "24.4.32", "private": false, "scripts": { "dev": "vite", diff --git a/src/modules/Filters/store/FiltersStoreModule.js b/src/modules/Filters/store/FiltersStoreModule.js index 2bfe783f2..c64211a94 100644 --- a/src/modules/Filters/store/FiltersStoreModule.js +++ b/src/modules/Filters/store/FiltersStoreModule.js @@ -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