@@ -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;
}