@neovici/cosmoz-omnitable 8.2.1 → 8.2.2

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.
@@ -85,6 +85,13 @@ export const
85
85
  }
86
86
 
87
87
  deserializeFilter(column, filter) {
88
+ if (filter == null) {
89
+ return null;
90
+ }
91
+
92
+ if (typeof filter === 'string') {
93
+ return window.decodeURIComponent(filter);
94
+ }
88
95
  return filter;
89
96
  }
90
97
 
@@ -21,6 +21,7 @@ const
21
21
  url = hashUrl(),
22
22
  searchParams = new URLSearchParams(url.hash.replace('#', ''));
23
23
 
24
+ // TODO: make parameterize pure
24
25
  parameterize(hashParam, value, codec, searchParams);
25
26
 
26
27
  return '#!' + Object.assign(url, { hash: searchParams }).href.replace(location.origin, '');
@@ -34,7 +34,7 @@ export const useProcessedItems = ({ data, columns, groupOnColumn, groupOnDescend
34
34
  if (column == null) {
35
35
  return [filter, undefined];
36
36
  }
37
- // TODO: add try-catch
37
+
38
38
  const state = { filter: column.deserializeFilter(column, value) };
39
39
  notifyChanges(column, state);
40
40
  return [filter, state];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "8.2.1",
3
+ "version": "8.2.2",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"