Skip to content

Commit

Permalink
refactor: Added extra nullpointer handling on Plex Guid
Browse files Browse the repository at this point in the history
This should mitigate issues #826 & #835
  • Loading branch information
jorenn92 committed Feb 7, 2024
1 parent 55edd36 commit dc4dbd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/src/components/Overview/Content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ const OverviewContent = (props: IOverviewContent) => {
}
tmdbid={
el.parentData
? el.parentData.Guid.find((e) =>
e.id.includes('tmdb'),
)?.id.split('tmdb://')[1]
? el.parentData.Guid?.find((e) =>
e.id?.includes('tmdb'),
)?.id?.split('tmdb://')[1]
: el.Guid
? el.Guid.find((e) => e.id.includes('tmdb'))?.id.split(
? el.Guid.find((e) => e.id?.includes('tmdb'))?.id?.split(
'tmdb://',
)[1]
: undefined
Expand Down

0 comments on commit dc4dbd1

Please sign in to comment.