@pitcher/js-api 1.26.0-beta.2 → 1.26.0-beta.3

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/js-api.esm.js CHANGED
@@ -2476,7 +2476,7 @@ function getAppConfig$2(payload) {
2476
2476
  const match = window.location.href.match(/pitcher(?:%20|\s+)folders\/files\/([^/]+)\//i);
2477
2477
  fileId = match?.[1];
2478
2478
  }
2479
- return fileId ? this.API.request("get_file", { file_id: fileId }).then((file) => file?.metadata) : this.API.request("get_app_config", payload);
2479
+ return fileId ? this.API.request("get_file", { file_id: fileId }).then((file) => file?.metadata ?? {}) : this.API.request("get_app_config", payload);
2480
2480
  }
2481
2481
  function getFile$2(payload) {
2482
2482
  const { id, file_id } = payload;