Skip to content

Update plex.js#284

Open
thomaswbecker wants to merge 2 commits into
petersem:masterfrom
thomaswbecker:undef-user-title-fix
Open

Update plex.js#284
thomaswbecker wants to merge 2 commits into
petersem:masterfrom
thomaswbecker:undef-user-title-fix

Conversation

@thomaswbecker
Copy link
Copy Markdown

@thomaswbecker thomaswbecker commented Mar 28, 2026

Adding a check to see if the User.title field ends up undefined, and prevent that from causing an error when checking user filters.

This fixes an issue I was having where the md.User.title.toLowerCase() would throw an error due to the value being undefined.

I think this is a fair defensive check since it is similar to the one on the follow line for checking on the value of medCard.playerDevice

Adding a check to see if the User.title field ends up undefined and prevent that from causing an error when checking user filters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant