clear form after adding (problem with category clearing)

This commit is contained in:
2025-05-20 18:26:50 +02:00
parent 00fbe8b655
commit 9962dc1e55
3 changed files with 20 additions and 13240 deletions

View File

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