Skip to content

Commit

Permalink
fix sending undefined for comment
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed May 9, 2023
1 parent 02f9d07 commit 4c460c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const UploadActionResult = memo<

const reqBody: UploadActionUIRequestBody = {
endpoint_ids: [endpointId],
comment: comment?.[0],
...(comment?.[0] ? { comment: comment?.[0] } : {}),
parameters:
overwrite !== undefined
? {
Expand Down

0 comments on commit 4c460c5

Please sign in to comment.