@kmkf-fe-packages/kmkf-work-order-service-component 2.2.13-beta.8 → 2.2.13-beta.9

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.
@@ -56,12 +56,13 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
56
56
  flowWorkOrderId: info.flowWorkOrderId,
57
57
  flowNodeId: info.flowNodeId
58
58
  }).then(function (res) {
59
- var _res$data, _res$data2;
59
+ var _res$data, _res$data2, _res$data3;
60
60
  if (res.data) {
61
61
  setVisible(true);
62
62
  }
63
63
  setUrl((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.link);
64
- setShortUrl("".concat(window.location.protocol, "//").concat((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.shortShareLink));
64
+ var shortLink = (_res$data2 = res.data) !== null && _res$data2 !== void 0 && _res$data2.shortShareLink ? "".concat(window.location.protocol, "//").concat((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.shortShareLink) : '';
65
+ setShortUrl(shortLink);
65
66
  });
66
67
  return;
67
68
  }
@@ -70,12 +71,13 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
70
71
  companyKey: info.companyKey,
71
72
  flowTemplateKey: info.flowTemplateKey
72
73
  }).then(function (res) {
73
- var _res$data3, _res$data4;
74
+ var _res$data4, _res$data5, _res$data6;
74
75
  if (res.data) {
75
76
  setVisible(true);
76
77
  }
77
- setUrl((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.link);
78
- setShortUrl("".concat(window.location.protocol, "//").concat((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.shortShareLink));
78
+ setUrl((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.link);
79
+ var shortLink = (_res$data5 = res.data) !== null && _res$data5 !== void 0 && _res$data5.shortShareLink ? "".concat(window.location.protocol, "//").concat((_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.shortShareLink) : '';
80
+ setShortUrl(shortLink);
79
81
  });
80
82
  return;
81
83
  }
@@ -94,7 +96,8 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
94
96
  mongoId: info.mongoId,
95
97
  longUrl: info.url
96
98
  }).then(function (res) {
97
- setShortUrl("".concat(window.location.protocol, "//").concat(res.data));
99
+ var shortUrl = res.data ? "".concat(window.location.protocol, "//").concat(res.data) : '';
100
+ setShortUrl(shortUrl);
98
101
  });
99
102
  }
100
103
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.2.13-beta.8",
3
+ "version": "2.2.13-beta.9",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -74,7 +74,7 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "2db797184619e2df510a5d81906af4670a55f494",
77
+ "gitHead": "889953137218e5749883a8a2e6b2ddc556782972",
78
78
  "gitHooks": {
79
79
  "pre-commit": "lint-staged"
80
80
  }