Skip to content

Commit 7b0d2f9

Browse files
committed
lint
1 parent 183f3a5 commit 7b0d2f9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

photon-client/src/components/cameras/CameraCalibrationCard.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ watchEffect(() => {
9999
);
100100
const currentFormatIndex = useCameraSettingsStore().currentVideoFormat.index ?? 0;
101101
// Checks if the current resolution is present in the list of valid formats, if not defaults to the last index (which is usually the highest resolution)
102-
const currentIndex = getUniqueVideoResolutionStrings().map(x => x.name).find((n) => n === names[currentFormatIndex]) !== undefined ? currentFormatIndex : names.length - 1;
102+
const currentIndex =
103+
getUniqueVideoResolutionStrings()
104+
.map((x) => x.name)
105+
.find((n) => n === names[currentFormatIndex]) !== undefined
106+
? currentFormatIndex
107+
: names.length - 1;
103108
useStateStore().calibrationData.videoFormatIndex = currentIndex;
104109
uniqueVideoResolutionString.value = names[currentIndex] ?? "";
105110
});

0 commit comments

Comments
 (0)