diff --git a/photon-client/src/components/cameras/CameraCalibrationCard.vue b/photon-client/src/components/cameras/CameraCalibrationCard.vue index 069f6a602f..b9316bd594 100644 --- a/photon-client/src/components/cameras/CameraCalibrationCard.vue +++ b/photon-client/src/components/cameras/CameraCalibrationCard.vue @@ -17,8 +17,6 @@ import { useSettingsStore } from "@/stores/settings/GeneralSettingsStore"; const settingsValid = ref(true); - - const getUniqueVideoFormatsByResolution = (): VideoFormat[] => { const uniqueResolutions: VideoFormat[] = []; useCameraSettingsStore().currentCameraSettings.validVideoFormats.forEach((format, index) => { @@ -53,8 +51,7 @@ const getUniqueVideoFormatsByResolution = (): VideoFormat[] => { } uniqueResolutions[existingIndex] = format; } - } - else{ + } else { format.index = index; const calib = useCameraSettingsStore().getCalibrationCoeffs(format.resolution); @@ -81,7 +78,6 @@ const getUniqueVideoFormatsByResolution = (): VideoFormat[] => { } uniqueResolutions.push(format); } - }); uniqueResolutions.sort( (a, b) => b.resolution.width + b.resolution.height - (a.resolution.width + a.resolution.height) diff --git a/photon-client/src/stores/settings/CameraSettingsStore.ts b/photon-client/src/stores/settings/CameraSettingsStore.ts index bdeda59cc8..7ffb215df1 100644 --- a/photon-client/src/stores/settings/CameraSettingsStore.ts +++ b/photon-client/src/stores/settings/CameraSettingsStore.ts @@ -314,7 +314,7 @@ export const useCameraSettingsStore = defineStore("cameraSettings", { startPnPCalibration( calibrationInitData: { squareSizeIn: number; - markerSizeIn: number, + markerSizeIn: number; patternWidth: number; patternHeight: number; boardType: CalibrationBoardTypes;