mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2024-12-02 19:16:27 +00:00
Unwrap some optionals
This commit is contained in:
parent
70f7ed0d98
commit
f33edf11f0
@ -176,7 +176,7 @@ struct ConnectToServerView: View {
|
||||
let server = response
|
||||
serverName = server.serverName!
|
||||
server_id = server.id!
|
||||
if server.startupWizardCompleted! {
|
||||
if server.startupWizardCompleted ?? true {
|
||||
isConnected = true
|
||||
|
||||
UserAPI.getPublicUsers()
|
||||
|
@ -49,13 +49,13 @@ struct LibraryView: View {
|
||||
init(withGenre: NameGuidPair) {
|
||||
self.usingParentID = ""
|
||||
self.title = withGenre.name ?? ""
|
||||
self.genre = withGenre.id ?? ""
|
||||
self.genre = withGenre.id!
|
||||
}
|
||||
|
||||
init(withStudio: NameGuidPair) {
|
||||
self.usingParentID = ""
|
||||
self.title = withStudio.name ?? ""
|
||||
self.studio = withStudio.id ?? ""
|
||||
self.studio = withStudio.id!
|
||||
}
|
||||
|
||||
func onAppear() {
|
||||
|
Loading…
Reference in New Issue
Block a user