Skip to content

Commit

Permalink
chore: live captions empty array support
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed Sep 4, 2024
1 parent 0855eeb commit d874a53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export class EntryCaptionsWidget extends EntryWidget implements OnDestroy {
} else {
// keep non closed captions
const nonClosedCaptionsStreams = data.streams.filter(stream => stream.type !== 'closedCaptions'); // remove any closedCaptions streams
data.streams = nonClosedCaptionsStreams.length ? [...nonClosedCaptionsStreams] : null;
data.streams = nonClosedCaptionsStreams.length ? [...nonClosedCaptionsStreams] : [];
}
}

Expand Down

0 comments on commit d874a53

Please sign in to comment.