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.mjs
CHANGED
|
@@ -1369,12 +1369,13 @@ function ApprovalWorkflow({
|
|
|
1369
1369
|
return urlBuilder(module_name, module_id, urlConfig, reference_id);
|
|
1370
1370
|
}
|
|
1371
1371
|
const ref = urlConfig == null ? void 0 : urlConfig[module_name];
|
|
1372
|
-
if ((ref == null ? void 0 : ref.
|
|
1372
|
+
if ((ref == null ? void 0 : ref.base_variable) && (ref == null ? void 0 : ref.sub_url)) {
|
|
1373
|
+
const BASE_ENV_VARIABLE = ENV_VARIABLES[(ref == null ? void 0 : ref.base_variable.split("_")[3]) + "_" + (ref == null ? void 0 : ref.base_variable.split("_")[4])];
|
|
1373
1374
|
const qs = new URLSearchParams();
|
|
1374
1375
|
if (reference_id) qs.set("reference_id", String(reference_id));
|
|
1375
1376
|
if (module_name) qs.set("module_name", String(module_name));
|
|
1376
1377
|
if (module_id) qs.set("module_id", String(module_id));
|
|
1377
|
-
return `${
|
|
1378
|
+
return `${BASE_ENV_VARIABLE}${ref.sub_url}?${qs.toString()}`;
|
|
1378
1379
|
}
|
|
1379
1380
|
return "#";
|
|
1380
1381
|
};
|