diff --git a/server/api/plextv.ts b/server/api/plextv.ts index 5d93f956e..9efcecc2b 100644 --- a/server/api/plextv.ts +++ b/server/api/plextv.ts @@ -91,7 +91,7 @@ interface FriendResponse { email: string; thumb: string; }; - Server: ServerResponse[]; + Server?: ServerResponse[]; }[]; }; } @@ -232,7 +232,7 @@ class PlexTvAPI { ); } - return !!user.Server.find( + return !!user.Server?.find( (server) => server.$.machineIdentifier === settings.plex.machineId ); } catch (e) {