mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
fix(settings): 🐛 Fixed the issue where you couldn't save the Plex settings
This commit is contained in:
parent
1ef45dc44c
commit
89a856a5d2
2 changed files with 4 additions and 2 deletions
3
src/Ombi/.vscode/settings.json
vendored
3
src/Ombi/.vscode/settings.json
vendored
|
@ -14,6 +14,7 @@
|
|||
"conventionalCommits.scopes": [
|
||||
"discover",
|
||||
"request-limits",
|
||||
"notifications"
|
||||
"notifications",
|
||||
"settings"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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}!`);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue