amp-workflow-ui 0.1.14 → 0.1.15
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/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1166,7 +1166,7 @@ function ApprovalWorkflow({
|
|
|
1166
1166
|
const filteredSelectedRequestArray = React7.useMemo(() => {
|
|
1167
1167
|
if (!debouncedSearchTerm) return selectedRequestArray;
|
|
1168
1168
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1169
|
-
return selectedRequestArray.filter((item) => {
|
|
1169
|
+
return selectedRequestArray == null ? void 0 : selectedRequestArray.filter((item) => {
|
|
1170
1170
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1171
1171
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1172
1172
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1175,7 +1175,7 @@ function ApprovalWorkflow({
|
|
|
1175
1175
|
const filteredAllRequestArray = React7.useMemo(() => {
|
|
1176
1176
|
if (!debouncedSearchTerm) return allRequestArray;
|
|
1177
1177
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1178
|
-
return allRequestArray.filter((item) => {
|
|
1178
|
+
return allRequestArray == null ? void 0 : allRequestArray.filter((item) => {
|
|
1179
1179
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1180
1180
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1181
1181
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1184,7 +1184,7 @@ function ApprovalWorkflow({
|
|
|
1184
1184
|
const filteredPendingRequestArray = React7.useMemo(() => {
|
|
1185
1185
|
if (!debouncedSearchTerm) return pendingRequestArray;
|
|
1186
1186
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1187
|
-
return pendingRequestArray.filter((item) => {
|
|
1187
|
+
return pendingRequestArray == null ? void 0 : pendingRequestArray.filter((item) => {
|
|
1188
1188
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1189
1189
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1190
1190
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1501,7 +1501,7 @@ function ApprovalWorkflow({
|
|
|
1501
1501
|
);
|
|
1502
1502
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
1503
1503
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
1504
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
1504
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
1505
1505
|
};
|
|
1506
1506
|
const redir = buildRedirectionUrl(info);
|
|
1507
1507
|
const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
|
|
@@ -1828,7 +1828,7 @@ function ApprovalWorkflow({
|
|
|
1828
1828
|
);
|
|
1829
1829
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
1830
1830
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
1831
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
1831
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
1832
1832
|
};
|
|
1833
1833
|
const redir = buildRedirectionUrl(info);
|
|
1834
1834
|
const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
|
|
@@ -2152,7 +2152,7 @@ function ApprovalWorkflow({
|
|
|
2152
2152
|
const statusList = currentLevel ? currentLevel.status_list : [];
|
|
2153
2153
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
2154
2154
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
2155
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
2155
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
2156
2156
|
};
|
|
2157
2157
|
const redir = buildRedirectionUrl(info);
|
|
2158
2158
|
const currentStatus = ((_d2 = (_c2 = (_b2 = info == null ? void 0 : info.levels) == null ? void 0 : _b2.find(
|