@twreporter/react-components 8.10.0-rc.0 → 8.10.0-rc.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [8.10.0-rc.1](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.10.0-rc.0...@twreporter/react-components@8.10.0-rc.1) (2022-06-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * bookmark should fetch upstream when page mount ([defb7b8](https://github.com/twreporter/twreporter-npm-packages/commit/defb7b8ae26cb4179dfb59c4392472e6bebe7906))
12
+
13
+
14
+
15
+
16
+
6
17
  # [8.10.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/react-components@8.9.0...@twreporter/react-components@8.10.0-rc.0) (2022-06-08)
7
18
 
8
19
 
@@ -138,16 +138,12 @@ var BookmarkList = /*#__PURE__*/function (_React$Component) {
138
138
  this.checkAuthorization();
139
139
  this._defaultBodyOverflow = _.get(document, 'body.style.overflow', this._defaultBodyOverflow);
140
140
  var bookmarks = this.props.bookmarks;
141
-
142
- if (!bookmarks.length) {
143
- var _this$props = this.props,
144
- jwt = _this$props.jwt,
145
- userID = _this$props.userID,
146
- _getMultipleBookmarks = _this$props.getMultipleBookmarks;
147
- var offset = 0;
148
-
149
- _getMultipleBookmarks(jwt, userID, offset, defaultLimit, defaultSort);
150
- }
141
+ var _this$props = this.props,
142
+ jwt = _this$props.jwt,
143
+ userID = _this$props.userID,
144
+ getMultipleBookmarks = _this$props.getMultipleBookmarks;
145
+ var offset = bookmarks.length;
146
+ getMultipleBookmarks(jwt, userID, offset, defaultLimit, defaultSort);
151
147
  } // Redirect to singin page if user has not been authorized
152
148
 
153
149
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twreporter/react-components",
3
- "version": "8.10.0-rc.0",
3
+ "version": "8.10.0-rc.1",
4
4
  "main": "lib/index.js",
5
5
  "repository": "https://github.com/twreporter/twreporter-npm-packages.git",
6
6
  "author": "twreporter <developer@twreporter.org>",
@@ -44,5 +44,5 @@
44
44
  "babel-loader": "^8.2.4",
45
45
  "chromatic": "^6.5.4"
46
46
  },
47
- "gitHead": "9cc4e642f326544d628a042ae83496476d150b8d"
47
+ "gitHead": "648da942082304faa56026b9d5a5e597dc86fca4"
48
48
  }