clear form after adding (problem with category clearing)
This commit is contained in:
@@ -33,9 +33,9 @@ export async function createNotice(notice) {
|
||||
});
|
||||
|
||||
if (response.data.noticeId !== null) {
|
||||
notice.image.forEach(imageUri => {
|
||||
uploadImage(response.data.noticeId, imageUri);
|
||||
});
|
||||
for (const imageUri of notice.image) {
|
||||
await uploadImage(response.data.noticeId, imageUri);
|
||||
}
|
||||
}
|
||||
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user