Gennadysht 1 year ago
parent
commit
da660d1cf9
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/utills/utils.js

+ 4 - 1
src/utills/utils.js

@@ -18,7 +18,10 @@ function saveImage(image) {
         method: "POST",
         headers: token ? { Authorization: 'Bearer ' + token } : {},
         body: formData
-    }).then(res => res.json());
+    }).then(res => {
+        let a = '';
+        return res.json();
+    });
     return res;
 }