amp-workflow-ui 0.1.9 → 0.1.10
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1382,12 +1382,13 @@ function ApprovalWorkflow({
|
|
|
1382
1382
|
return urlBuilder(module_name, module_id, urlConfig, reference_id);
|
|
1383
1383
|
}
|
|
1384
1384
|
const ref = urlConfig == null ? void 0 : urlConfig[module_name];
|
|
1385
|
-
if ((ref == null ? void 0 : ref.
|
|
1385
|
+
if ((ref == null ? void 0 : ref.base_variable) && (ref == null ? void 0 : ref.sub_url)) {
|
|
1386
|
+
const BASE_ENV_VARIABLE = ENV_VARIABLES[(ref == null ? void 0 : ref.base_variable.split("_")[3]) + "_" + (ref == null ? void 0 : ref.base_variable.split("_")[4])];
|
|
1386
1387
|
const qs = new URLSearchParams();
|
|
1387
1388
|
if (reference_id) qs.set("reference_id", String(reference_id));
|
|
1388
1389
|
if (module_name) qs.set("module_name", String(module_name));
|
|
1389
1390
|
if (module_id) qs.set("module_id", String(module_id));
|
|
1390
|
-
return `${
|
|
1391
|
+
return `${BASE_ENV_VARIABLE}${ref.sub_url}?${qs.toString()}`;
|
|
1391
1392
|
}
|
|
1392
1393
|
return "#";
|
|
1393
1394
|
};
|