Skip to content

Commit

Permalink
Update photon-client/src/components/settings/DeviceControlCard.vue
Browse files Browse the repository at this point in the history
Co-authored-by: Sriman Achanta <[email protected]>
  • Loading branch information
mcm001 and srimanachanta authored Oct 9, 2023
1 parent 31e4b91 commit d387de0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions photon-client/src/components/settings/DeviceControlCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ const handleOfflineUpdate = (payload: Event) => {
const formData = new FormData();
if (payload.target == null) return;
if (!("files" in payload.target)) {
return;
}
if (payload.target == null || !payload.target?.files) return;
const files: FileList = payload.target?.files as FileList;
formData.append("jarData", files[0]);
Expand Down

0 comments on commit d387de0

Please sign in to comment.