Skip to content

Commit

Permalink
fix(jellyfin): Fix missing check for undefined play
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Dec 17, 2024
1 parent 884b396 commit b5683ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Atomic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export interface AmbPlayObject {
}

export const isPlayObject = (obj: object): obj is PlayObject => {
return 'data' in obj && typeof obj.data === 'object' && 'meta' in obj && typeof obj.meta === 'object';
return obj !== undefined && obj !== null && 'data' in obj && typeof obj.data === 'object' && 'meta' in obj && typeof obj.meta === 'object';
}

export interface PlayObject extends AmbPlayObject {
Expand Down

0 comments on commit b5683ba

Please sign in to comment.