mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5438 from thornbill/fix-undefined-now-playing
Fix playback errors
This commit is contained in:
commit
92c02f8d99
2 changed files with 2 additions and 2 deletions
|
@ -628,7 +628,7 @@ function onPlaybackStart(e, state) {
|
|||
console.debug('nowplaying event: ' + e.type);
|
||||
const player = this;
|
||||
|
||||
isAudio = state.NowPlayingItem.Type === 'Audio';
|
||||
isAudio = state.NowPlayingItem?.Type === 'Audio';
|
||||
|
||||
onStateChanged.call(player, e, state);
|
||||
}
|
||||
|
|
|
@ -253,7 +253,7 @@ const ItemsContainer: FC<ItemsContainerProps> = ({
|
|||
);
|
||||
|
||||
const onPlaybackStopped = useCallback(
|
||||
(_e: Event, apiClient, stopInfo) => {
|
||||
(_e: Event, stopInfo) => {
|
||||
const state = stopInfo.state;
|
||||
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue