Skip to content

Commit

Permalink
Fixed check for file upload with optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
gzhihongwei committed Dec 20, 2022
1 parent 2594917 commit c0c028d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function MainApp() {
} else {
formData.append("USED_AGENT_ID", agentId);

objData.file1.size === 0
objData?.file1 === undefined
? (objData.file1 = {})
: (objData.file1 = {
lastModified: objData.file1.lastModified
Expand Down

0 comments on commit c0c028d

Please sign in to comment.