contentoh-components-library 21.2.44 → 21.2.45
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.
|
@@ -130,7 +130,6 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
130
130
|
switch (_context.prev = _context.next) {
|
|
131
131
|
case 0:
|
|
132
132
|
byStatus = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
|
|
133
|
-
console.log(jwt, user);
|
|
134
133
|
keys = Object.keys(queryObject);
|
|
135
134
|
string = [];
|
|
136
135
|
keys.forEach(function (key) {
|
|
@@ -138,29 +137,29 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
138
137
|
});
|
|
139
138
|
query = string.join("&");
|
|
140
139
|
endpoint = byStatus ? process.env.REACT_APP_READ_ORDERS_BY_STATUS : process.env.REACT_APP_READ_REQUIRED_ORDERS;
|
|
141
|
-
_context.prev =
|
|
142
|
-
_context.next =
|
|
140
|
+
_context.prev = 6;
|
|
141
|
+
_context.next = 9;
|
|
143
142
|
return _axios.default.get("".concat(endpoint, "?").concat(query), {
|
|
144
143
|
headers: {
|
|
145
144
|
Authorization: jwt
|
|
146
145
|
}
|
|
147
146
|
});
|
|
148
147
|
|
|
149
|
-
case
|
|
148
|
+
case 9:
|
|
150
149
|
response = _context.sent;
|
|
151
150
|
return _context.abrupt("return", JSON.parse(response.data.body));
|
|
152
151
|
|
|
153
|
-
case
|
|
154
|
-
_context.prev =
|
|
155
|
-
_context.t0 = _context["catch"](
|
|
152
|
+
case 13:
|
|
153
|
+
_context.prev = 13;
|
|
154
|
+
_context.t0 = _context["catch"](6);
|
|
156
155
|
console.log(_context.t0);
|
|
157
156
|
|
|
158
|
-
case
|
|
157
|
+
case 16:
|
|
159
158
|
case "end":
|
|
160
159
|
return _context.stop();
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
|
-
}, _callee, null, [[
|
|
162
|
+
}, _callee, null, [[6, 13]]);
|
|
164
163
|
}));
|
|
165
164
|
|
|
166
165
|
return function loadProductVersions(_x) {
|
package/package.json
CHANGED
|
@@ -35,7 +35,6 @@ export const Dashboard = ({ jwt, user }) => {
|
|
|
35
35
|
const [dateOptions, setDateOptions] = useState([]);
|
|
36
36
|
|
|
37
37
|
const loadProductVersions = async (queryObject, byStatus = false) => {
|
|
38
|
-
console.log(jwt, user);
|
|
39
38
|
const keys = Object.keys(queryObject);
|
|
40
39
|
let string = [];
|
|
41
40
|
keys.forEach((key) => string.push(`${key}=${queryObject[key]}`));
|