Relax checks on profile renaming

This commit is contained in:
Davide De Rosa 2020-02-27 13:06:52 +01:00
parent c7b2ff56b5
commit 4e597316be
2 changed files with 4 additions and 2 deletions

View File

@ -248,7 +248,9 @@ class ServiceViewController: UIViewController, StrongTableHost {
}
private func doRenameCurrentProfile(to newId: String) {
let renamedProfile = service.renameProfile(uncheckedHostProfile, to: newId)
guard let renamedProfile = service.renameProfile(uncheckedHostProfile, to: newId) else {
return
}
setProfile(renamedProfile, reloadingViews: false)
}

@ -1 +1 @@
Subproject commit 149e95d9727e504c96b3e6ec0d822c195782299a
Subproject commit b3db94cc44f989553c5a45ad1a1126ab6fb14254