fix: Fix issue with media view incorrectly rejecting cameras (#2061)

For issue: #1748
This commit is contained in:
Dermot Duffy
2025-05-23 20:02:13 -07:00
committed by GitHub
parent 14cf80c7b4
commit b97e1358d0
7 changed files with 21 additions and 24 deletions
+1 -7
View File
@@ -19,6 +19,7 @@ export const getCameraIDsForViewName = (
case 'diagnostics':
case 'image':
case 'folder':
case 'media':
return cameraManager.getStore().getCameraIDs();
case 'live':
@@ -44,12 +45,5 @@ export const getCameraIDsForViewName = (
return cameraManager
.getStore()
.getCameraIDsWithCapability(capabilityMatchAnyMedia);
case 'media':
return cameraID
? cameraManager
.getStore()
.getAllDependentCameras(cameraID, capabilityMatchAnyMedia)
: cameraManager.getStore().getCameraIDsWithCapability(capabilityMatchAnyMedia);
}
};