@neovici/cosmoz-omnitable 8.5.0 → 8.5.1
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.
|
@@ -151,8 +151,7 @@ const
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
serializeFilter(column, filter) {
|
|
154
|
-
|
|
155
|
-
return filter.length === 0 ? null : encodeURIComponent(JSON.stringify(filter));
|
|
154
|
+
return filter.length === 0 ? null : JSON.stringify(filter);
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
deserializeFilter(column, filter) {
|
package/lib/use-hash-state.js
CHANGED
|
@@ -40,8 +40,7 @@ const
|
|
|
40
40
|
|
|
41
41
|
export const useHashState = (initial, param, { suffix = '', read, write, multi } = {}) => {
|
|
42
42
|
const
|
|
43
|
-
link = multi ? multiLink : singleLink,
|
|
44
|
-
parseHash = multi ? multiParse : singleParse,
|
|
43
|
+
[link, parseHash] = multi ? [multiLink, multiParse] : [singleLink, singleParse],
|
|
45
44
|
[state, _setState] = useState(() => param == null
|
|
46
45
|
? initial
|
|
47
46
|
: parseHash(param + suffix, read) ?? initial),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.1",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|