Recordings Fixes (#13005)

* If recordings don't exist mark as no recordings

* Fix reloading recordings failing

* Fix mark items not clearing selected

* Cleanup

* Default to last full hour when error occurs

* Remove check

* Cleanup

* Handle empty recordings list case

* Ensure that the start time is within the time range

* Catch other reset cases
This commit is contained in:
Nicolas Mowen
2024-08-12 14:30:16 -06:00
committed by GitHub
parent 132a712341
commit 281482927a
4 changed files with 36 additions and 7 deletions

View File

@@ -167,7 +167,11 @@ export default function DynamicVideoPlayer({
);
useEffect(() => {
if (!controller || !recordings) {
if (!controller || !recordings?.length) {
if (recordings?.length == 0) {
setNoRecording(true);
}
return;
}