mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-29 02:21:41 +00:00
Fix logic for no cameras detected modal (#1978)
fixes #1977 Previously, the logic was checking for the camera object to be the same as the placeholder camera object. Logic has been changed to check only the name of the camera object.
This commit is contained in:
@@ -43,7 +43,7 @@ const cameraViewType = computed<number[]>({
|
||||
const warningShown = computed<boolean>(() => {
|
||||
return (
|
||||
Object.values(useCameraSettingsStore().cameras).length === 0 ||
|
||||
useCameraSettingsStore().cameras["Placeholder Name"] === PlaceholderCameraSettings
|
||||
PlaceholderCameraSettings.nickname === useCameraSettingsStore().currentCameraName
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user