diff --git a/photon-client/src/stores/settings/CameraSettingsStore.ts b/photon-client/src/stores/settings/CameraSettingsStore.ts index e591e6f88..f53eb1dbd 100644 --- a/photon-client/src/stores/settings/CameraSettingsStore.ts +++ b/photon-client/src/stores/settings/CameraSettingsStore.ts @@ -78,7 +78,7 @@ export const useCameraSettingsStore = defineStore("cameraSettings", { }, actions: { updateCameraSettingsFromWebsocket(data: WebsocketCameraSettingsUpdate[]) { - this.cameras = data.map((d) => ({ + const configuredCameras = data.map((d) => ({ nickname: d.nickname, uniqueName: d.uniqueName, fov: { @@ -115,6 +115,7 @@ export const useCameraSettingsStore = defineStore("cameraSettings", { pipelineSettings: d.currentPipelineSettings, cameraQuirks: d.cameraQuirks })); + this.cameras = configuredCameras.length > 0 ? configuredCameras : [PlaceholderCameraSettings]; }, /** * Update the configurable camera settings.