diff --git a/photon-client/src/components/cameras/CameraCalibrationCard.vue b/photon-client/src/components/cameras/CameraCalibrationCard.vue index f4c60dba54..d5cc521310 100644 --- a/photon-client/src/components/cameras/CameraCalibrationCard.vue +++ b/photon-client/src/components/cameras/CameraCalibrationCard.vue @@ -151,9 +151,7 @@ const openCalibUploadPrompt = () => { importCalibrationFromCalibDB.value.click(); }; const readImportedCalibration = (payload: Event) => { - 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;