Added delete image flag to form
This commit is contained in:
1 parent
7deb796fa1
commit
2c2cffcc84
2 files changed
+14
-1
No files matched your search
@@ -52,6 +52,7 @@ export const update = createAsyncThunk(
|
||||
fd.append("firstname", form.firstname);
|
||||
fd.append("lastname", form.lastname);
|
||||
fd.append("profileImage", imageResult.data);
|
||||
fd.append("deleteProfileImage", form.deleteProfileImage);
|
||||
|
||||
const res = await axios.post(`${BASE_URL}/auth/user/${user._id}`, fd, {
|
||||
headers: {
|
||||
|
||||
Reference in new issue
Block a user