jamespot-front-business 1.1.60 → 1.1.61

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/dist/esm.js CHANGED
@@ -38,7 +38,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
38
38
  function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
39
  step((generator = generator.apply(thisArg, _arguments || [])).next());
40
40
  });
41
- }
41
+ }
42
+
43
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
44
+ var e = new Error(message);
45
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
46
+ };
42
47
 
43
48
  const toastAdapter = createEntityAdapter({
44
49
  selectId: (toast) => toast.id,
@@ -1512,7 +1517,9 @@ const mediaLibrarySlice = createSlice({
1512
1517
  state.unclassifiedFiles = {
1513
1518
  list: [...action.payload.result.data],
1514
1519
  page: action.payload.result.page,
1515
- totalPages: Math.ceil(action.payload.result.cnt / action.payload.result.limit),
1520
+ totalPages: action.payload.result.limit === null
1521
+ ? 1
1522
+ : Math.ceil(action.payload.result.cnt / action.payload.result.limit),
1516
1523
  };
1517
1524
  state.nbResults = 0;
1518
1525
  })