@blocklet/list 0.8.6 → 0.8.7

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.
@@ -114,7 +114,7 @@ function SearchProvider(_ref) {
114
114
  sort: queryParams.sortBy,
115
115
  direction: queryParams.sortDirection
116
116
  };
117
- sortParams = urlSortParams.sortBy && urlSortParams.sortDirection ? urlSortParams : localSortParams;
117
+ sortParams = urlSortParams.sort && urlSortParams.direction ? urlSortParams : localSortParams;
118
118
  } else {
119
119
  sortParams = (0, _react.useMemo)(() => {
120
120
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/list",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Common ux components of blocklet",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -62,5 +62,5 @@
62
62
  "babel-plugin-inline-react-svg": "^2.0.1",
63
63
  "babel-plugin-styled-components": "^1.10.7"
64
64
  },
65
- "gitHead": "ef1d41695525f138255fe7f096c861395328a7f7"
65
+ "gitHead": "09d60f684d7e6fad1b86a52b3aa937deb8368752"
66
66
  }
@@ -71,7 +71,7 @@ function SearchProvider({ children, baseUrl, type, endpoint, locale, blockletRen
71
71
  sort: queryParams.sortBy,
72
72
  direction: queryParams.sortDirection,
73
73
  };
74
- sortParams = urlSortParams.sortBy && urlSortParams.sortDirection ? urlSortParams : localSortParams;
74
+ sortParams = urlSortParams.sort && urlSortParams.direction ? urlSortParams : localSortParams;
75
75
  } else {
76
76
  sortParams = useMemo(() => {
77
77
  return {