@trackunit/filters-filter-bar 0.0.427 → 0.0.429
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1014,7 +1014,7 @@ const useFilterBar = ({ name, onValuesChange, filterBarDefinition, initialState,
|
|
|
1014
1014
|
if (storedFilters && storedFilters !== "undefined") {
|
|
1015
1015
|
const loadedFilterBarConfig = JSON.parse(storedFilters);
|
|
1016
1016
|
if (validateFilter(loadedFilterBarConfig, filterDefinitionsValues)) {
|
|
1017
|
-
initialFilterBarConfig = createInitialState(loadedFilterBarConfig.name, filterDefinitionsValues, initialState || loadedFilterBarConfig.
|
|
1017
|
+
initialFilterBarConfig = createInitialState(loadedFilterBarConfig.name, filterDefinitionsValues, initialState || loadedFilterBarConfig.values, setValue);
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
//WHY WE NEED THIS?
|
package/index.esm.js
CHANGED
|
@@ -1012,7 +1012,7 @@ const useFilterBar = ({ name, onValuesChange, filterBarDefinition, initialState,
|
|
|
1012
1012
|
if (storedFilters && storedFilters !== "undefined") {
|
|
1013
1013
|
const loadedFilterBarConfig = JSON.parse(storedFilters);
|
|
1014
1014
|
if (validateFilter(loadedFilterBarConfig, filterDefinitionsValues)) {
|
|
1015
|
-
initialFilterBarConfig = createInitialState(loadedFilterBarConfig.name, filterDefinitionsValues, initialState || loadedFilterBarConfig.
|
|
1015
|
+
initialFilterBarConfig = createInitialState(loadedFilterBarConfig.name, filterDefinitionsValues, initialState || loadedFilterBarConfig.values, setValue);
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
//WHY WE NEED THIS?
|