fix: report upload missing imageUrls field
This commit is contained in:
@@ -51,6 +51,7 @@ export async function uploadReport(data: { title: string; category: string }): P
|
|||||||
const res = await api.post<RawReport>('/api/reports', {
|
const res = await api.post<RawReport>('/api/reports', {
|
||||||
title: data.title,
|
title: data.title,
|
||||||
category: data.category,
|
category: data.category,
|
||||||
|
imageUrls: [],
|
||||||
});
|
});
|
||||||
return mapReport(res.data);
|
return mapReport(res.data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user