Skip to content

Commit

Permalink
fix adding evidence without file
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed Sep 20, 2024
1 parent 2a78cca commit 0d1b1d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const actions: Actions = {

if (fileFields) {
for (const [, file] of Object.entries(fileFields)) {
if (file.size <= 0) {
if (!file || file.size <= 0) {
continue;
}
const fileUploadEndpoint = `${BASE_API_URL}/${urlModel}/${createdObject.id}/upload/`;
Expand Down

0 comments on commit 0d1b1d0

Please sign in to comment.