Skip to content

Commit

Permalink
fix(settings): 🐛 Fixed the issue where you couldn't save the Plex set…
Browse files Browse the repository at this point in the history
…tings
  • Loading branch information
tidusjar committed Oct 8, 2021
1 parent 1ef45dc commit 89a856a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Ombi/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"conventionalCommits.scopes": [
"discover",
"request-limits",
"notifications"
"notifications",
"settings"
]
}
3 changes: 2 additions & 1 deletion src/Ombi/ClientApp/src/app/settings/plex/plex.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class PlexComponent implements OnInit, OnDestroy {
server.plexAuthToken = selectedServer.accessToken;
server.port = parseInt(selectedServer.port);
server.ssl = selectedServer.scheme === "http" ? false : true;
server.serverHostname = "";

this.notificationService.success(`Selected ${server.name}!`);
}
Expand Down Expand Up @@ -128,7 +129,7 @@ export class PlexComponent implements OnInit, OnDestroy {
let invalid = false;

this.settings.servers.forEach(server => {
if (server.serverHostname.length > 0 && !server.serverHostname.startsWith("http")) {
if (server.serverHostname && server.serverHostname.length > 0 && !server.serverHostname.startsWith("http")) {
invalid = true;
}
});
Expand Down

0 comments on commit 89a856a

Please sign in to comment.