Skip to content

Commit d874a53

Browse files
committed
chore: live captions empty array support
1 parent 0855eeb commit d874a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/applications/content-entries-app/entry/entry-captions/entry-captions-widget.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ export class EntryCaptionsWidget extends EntryWidget implements OnDestroy {
471471
} else {
472472
// keep non closed captions
473473
const nonClosedCaptionsStreams = data.streams.filter(stream => stream.type !== 'closedCaptions'); // remove any closedCaptions streams
474-
data.streams = nonClosedCaptionsStreams.length ? [...nonClosedCaptionsStreams] : null;
474+
data.streams = nonClosedCaptionsStreams.length ? [...nonClosedCaptionsStreams] : [];
475475
}
476476
}
477477

0 commit comments

Comments
 (0)