Fix jumping to segment in recordings view (#10424)

* Fix skeletons showing incorrectly

* Handle clicking segment from different time range
This commit is contained in:
Nicolas Mowen
2024-03-13 08:05:01 -06:00
committed by GitHub
parent 52ce6190ae
commit 0e8350ea7f
3 changed files with 66 additions and 16 deletions

View File

@@ -154,8 +154,11 @@ function PreviewVideoPlayer({
Math.round(preview.start) >= timeRange.start &&
Math.floor(preview.end) <= timeRange.end,
);
setLoaded(false);
setCurrentPreview(preview);
if (preview != currentPreview) {
setCurrentPreview(preview);
setLoaded(false);
}
controller.newPlayback({
preview,