@bzbs/react-api-client 1.4.9 → 1.4.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.mjs CHANGED
@@ -159,7 +159,9 @@ var BaseService = class {
159
159
  static createFormData(data, fileKey, file) {
160
160
  const formData = new FormData();
161
161
  for (const key in data) {
162
- formData.append(key, data[key]);
162
+ if (data[key]) {
163
+ formData.append(key, data[key]);
164
+ }
163
165
  }
164
166
  if (file) {
165
167
  formData.append(fileKey != null ? fileKey : "data", file);
@@ -1823,7 +1825,7 @@ var ProfileApi = class extends BaseService {
1823
1825
  occupation: params.occupation,
1824
1826
  remark: params.remark,
1825
1827
  displayname: params.displayName
1826
- }, params.options), "profileImage", params.profileImage),
1828
+ }, params.options), "data", params.profileImage),
1827
1829
  {
1828
1830
  headers: __spreadValues({
1829
1831
  "Content-Type": "multipart/form-data"