From d387de06417cfae231d9eb13da542df676bc8382 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 9 Oct 2023 11:02:06 -0400 Subject: [PATCH] Update photon-client/src/components/settings/DeviceControlCard.vue Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> --- photon-client/src/components/settings/DeviceControlCard.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/photon-client/src/components/settings/DeviceControlCard.vue b/photon-client/src/components/settings/DeviceControlCard.vue index 9ac0b335b5..663dd1601e 100644 --- a/photon-client/src/components/settings/DeviceControlCard.vue +++ b/photon-client/src/components/settings/DeviceControlCard.vue @@ -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]);