We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e501a5 commit aa04ed7Copy full SHA for aa04ed7
src/popup/SegmentListComponent.tsx
@@ -48,9 +48,7 @@ export const SegmentListComponent = (props: SegmentListComponentProps) => {
48
49
React.useEffect(() => {
50
const hasSegments = props.segments.find(seg => seg.actionType !== ActionType.Chapter)
51
- if (hasSegments) {
52
- setTab(SegmentListTab.Segments);
53
- } else {
+ if (!hasSegments && props.segments.length > 0) {
54
setTab(SegmentListTab.Chapter);
55
}
56
}, [props.videoID, props.segments]);
0 commit comments