powr-sdk-web 6.13.0 → 6.13.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.
@@ -27,8 +27,7 @@ function when(value) {
27
27
  return date.toLocaleString();
28
28
  }
29
29
  function PowrSchedulerAdmin(_ref) {
30
- var projectId = _ref.projectId,
31
- apiUrl = _ref.apiUrl;
30
+ var projectId = _ref.projectId;
32
31
  var session = (0, _session.usePowrSession)();
33
32
  var _useState = (0, _react.useState)([]),
34
33
  _useState2 = _slicedToArray(_useState, 2),
@@ -53,7 +52,7 @@ function PowrSchedulerAdmin(_ref) {
53
52
  case 0:
54
53
  setLoading(true);
55
54
  setError("");
56
- host = apiUrl || _config.DEFAULT_POWR_API_URL;
55
+ host = _config.DEFAULT_POWR_API_URL;
57
56
  headers = session !== null && session !== void 0 && session.token ? {
58
57
  Authorization: "Bearer ".concat(session.token)
59
58
  } : undefined;
@@ -76,7 +75,7 @@ function PowrSchedulerAdmin(_ref) {
76
75
  return _context.a(2);
77
76
  }
78
77
  }, _callee);
79
- })), [apiUrl, projectId, session === null || session === void 0 ? void 0 : session.token]);
78
+ })), [projectId, session === null || session === void 0 ? void 0 : session.token]);
80
79
  (0, _react.useEffect)(function () {
81
80
  load()["catch"](function () {
82
81
  setError("Failed to load schedules.");
@@ -96,7 +95,7 @@ function PowrSchedulerAdmin(_ref) {
96
95
  setBusy(id + path);
97
96
  setError("");
98
97
  _context2.p = 1;
99
- host = apiUrl || _config.DEFAULT_POWR_API_URL;
98
+ host = _config.DEFAULT_POWR_API_URL;
100
99
  headers = session !== null && session !== void 0 && session.token ? {
101
100
  Authorization: "Bearer ".concat(session.token)
102
101
  } : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powr-sdk-web",
3
- "version": "6.13.0",
3
+ "version": "6.13.1",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"