Skip to content

A self-hosted media server and file management system

fix: default storyboard should be undefined when not found

aminnausin441aeeec2852
diff --git a/resources/js/components/video/PlayerStoryboard.vue b/resources/js/components/video/PlayerStoryboard.vue
index 1646364e..a972cb86 100644
--- a/resources/js/components/video/PlayerStoryboard.vue
+++ b/resources/js/components/video/PlayerStoryboard.vue
@@ -32,7 +32,7 @@ const storyboardCues = computed<StoryboardCue[]>(() => {
return buildStoryboardCues(uuid, durationSeconds, storyboard.value);
});
-const activeCue = computed<StoryboardCue | undefined>(() => storyboardCues.value.find((c) => props.tooltipTime >= c.start && props.tooltipTime < c.end) ?? storyboardCues.value[0]);
+const activeCue = computed<StoryboardCue | undefined>(() => storyboardCues.value.find((c) => props.tooltipTime >= c.start && props.tooltipTime < c.end));
const spriteStyle = computed<HTMLAttributes['style']>(() => {
const c = activeCue.value;