@webitel/ui-sdk 3.2.14 → 3.2.16
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
|
@@ -13,6 +13,7 @@ export default class FiltersStoreModule extends BaseStoreModule {
|
|
|
13
13
|
};
|
|
14
14
|
}, {}),
|
|
15
15
|
GET_FILTER: (state) => (filter) => {
|
|
16
|
+
if (!state[filter]) return null;
|
|
16
17
|
const { value, storedProp, multiple } = state[filter];
|
|
17
18
|
if (multiple) return value.map((item) => item[storedProp]); // if arr, map
|
|
18
19
|
if (storedProp) return value[storedProp]; // if object and has specific prop, return this prop
|