Fix issue with unfinished chapter submissions causing the seek bar to look wrong

This commit is contained in:
Ajay 2025-03-08 16:10:33 -05:00
parent abbab887c6
commit c22a763da6

View file

@ -1414,6 +1414,7 @@ function updatePreviewBar(): void {
} }
sponsorTimesSubmitting.forEach((segment) => { sponsorTimesSubmitting.forEach((segment) => {
if (segment.actionType !== ActionType.Chapter || segment.segment.length > 1) {
previewBarSegments.push({ previewBarSegments.push({
segment: segment.segment as [number, number], segment: segment.segment as [number, number],
category: segment.category, category: segment.category,
@ -1423,6 +1424,7 @@ function updatePreviewBar(): void {
description: segment.description, description: segment.description,
source: segment.source source: segment.source
}); });
}
}); });
previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), getVideoDuration()) previewBar.set(previewBarSegments.filter((segment) => segment.actionType !== ActionType.Full), getVideoDuration())