@ukpc-lib/react 0.13.8 → 0.13.9-sandbox.saas-8903.patch-2

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.
@@ -7717,7 +7717,7 @@ const Kr = (e) => {
7717
7717
  w1(r);
7718
7718
  }, []);
7719
7719
  const i = (a, c) => {
7720
- var l, d;
7720
+ var l;
7721
7721
  if ((a == null ? void 0 : a.actionKey) != null) {
7722
7722
  if ((l = a == null ? void 0 : a.data) != null && l.brandName)
7723
7723
  return It(
@@ -7729,7 +7729,7 @@ const Kr = (e) => {
7729
7729
  );
7730
7730
  switch (a == null ? void 0 : a.notificationType) {
7731
7731
  case "deleteMultiple":
7732
- return a != null && a.data && ((d = a == null ? void 0 : a.data) == null ? void 0 : d.length) > 1 ? It(
7732
+ return a != null && a.data && c > 1 ? It(
7733
7733
  `notificationAdmin.notify.actionKey.${a == null ? void 0 : a.actionKey}_multiple`,
7734
7734
  { defaultValue: `${a == null ? void 0 : a.actionKey}`, count: c }
7735
7735
  ) : It(
@@ -7746,12 +7746,11 @@ const Kr = (e) => {
7746
7746
  return a.message;
7747
7747
  };
7748
7748
  return _1(e).then((a) => {
7749
- var l;
7750
7749
  console.log("aaa", a);
7751
- const c = a == null ? void 0 : a.data;
7750
+ const c = a == null ? void 0 : a.data, l = JSON.parse(c).length;
7752
7751
  n({
7753
7752
  actorName: c == null ? void 0 : c.actorName,
7754
- message: i(c, c != null && c.data ? (l = c.data) == null ? void 0 : l.length : 0),
7753
+ message: i(c, l || 0),
7755
7754
  context: c == null ? void 0 : c.context,
7756
7755
  contextUrl: c == null ? void 0 : c.contextUrl
7757
7756
  }), r((d) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.13.8",
4
+ "version": "0.13.9-sandbox.saas-8903.patch-2",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { F as i, u as m } from "../index-ANQjrjYO.js";
2
+ import { F as i, u as m } from "../index-DHl6TYHg.js";
3
3
  import "../index-BSe1av43.js";
4
4
  import "../index-CxiIFyUv.js";
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { G as i } from "../index-ANQjrjYO.js";
2
+ import { G as i } from "../index-DHl6TYHg.js";
3
3
  import "../index-BSe1av43.js";
4
4
  import "../index-CxiIFyUv.js";
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { L as n, T as s } from "../index-ANQjrjYO.js";
2
+ import { L as n, T as s } from "../index-DHl6TYHg.js";
3
3
  import "../index-BSe1av43.js";
4
4
  import "../index-DnBVPOmu.js";
5
5
  import "../index-CxiIFyUv.js";
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { H as e, g as m } from "../index-ANQjrjYO.js";
2
+ import { H as e, g as m } from "../index-DHl6TYHg.js";
3
3
  import "../index-CxiIFyUv.js";
4
4
  export {
5
5
  e as HasPermission,