impaktapps-ui-builder 0.0.378 → 0.0.380

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.
@@ -8315,15 +8315,12 @@ const downloadFile$1 = (obj) => {
8315
8315
  document.body.removeChild(link);
8316
8316
  };
8317
8317
  const clickDownloadLink = (response2, service2) => {
8318
- let url = `${service2.defaults.baseURL}/${response2.path}`;
8318
+ const user = JSON.parse(localStorage.getItem("user"));
8319
+ let url = `${service2.defaults.baseURL}/${response2.path}?Authorization=${user.token}`;
8319
8320
  if (response2 == null ? void 0 : response2.params) {
8320
8321
  const keysArray = Object.keys(response2 == null ? void 0 : response2.params);
8321
8322
  keysArray.map((e, i) => {
8322
- if (i === 0) {
8323
- url = url + `?${e}=${response2 == null ? void 0 : response2.params[e]}`;
8324
- } else {
8325
- url = url + `&${e}=${response2 == null ? void 0 : response2.params[e]}`;
8326
- }
8323
+ url = url + `&${e}=${response2 == null ? void 0 : response2.params[e]}`;
8327
8324
  });
8328
8325
  }
8329
8326
  const link = document.createElement("a");