kui-crm 0.0.134 → 0.0.135

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/cjs/index.js CHANGED
@@ -653,7 +653,7 @@ var getBodyForImageRequest = function (file, res) {
653
653
  return res
654
654
  ? {
655
655
  temp_file_id: res.id,
656
- image_name: (_b = (file.name || ((_a = file.file) === null || _a === void 0 ? void 0 : _a.name))) === null || _b === void 0 ? void 0 : _b.replace(/\.[^/.]+$/, ""),
656
+ image_name: ((_b = (file.name || ((_a = file.file) === null || _a === void 0 ? void 0 : _a.name))) === null || _b === void 0 ? void 0 : _b.replace(/\.[^/.]+$/, "")) || "",
657
657
  }
658
658
  : null;
659
659
  };