on-demand: iOS: Fix crash on selecting Any SSID when already selected
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
37f8500fe6
commit
6a6be9edde
|
@ -266,6 +266,10 @@ extension SSIDOptionEditTableViewController {
|
||||||
case .ssidOption:
|
case .ssidOption:
|
||||||
let previousOption = selectedOption
|
let previousOption = selectedOption
|
||||||
selectedOption = ssidOptionFields[indexPath.row]
|
selectedOption = ssidOptionFields[indexPath.row]
|
||||||
|
guard previousOption != selectedOption else {
|
||||||
|
tableView.deselectRow(at: indexPath, animated: true)
|
||||||
|
return
|
||||||
|
}
|
||||||
loadSections()
|
loadSections()
|
||||||
if previousOption == .anySSID {
|
if previousOption == .anySSID {
|
||||||
let indexSet = IndexSet(1 ... 2)
|
let indexSet = IndexSet(1 ... 2)
|
||||||
|
|
Loading…
Reference in New Issue