key name mismatch fix.
This commit is contained in:
parent
ad8b48b699
commit
dc5174cbe4
@ -33,7 +33,7 @@ import UIKit
|
|||||||
options: [.old, .new]
|
options: [.old, .new]
|
||||||
) { [weak self] object, change in
|
) { [weak self] object, change in
|
||||||
guard change.newValue != change.oldValue, let self = self,
|
guard change.newValue != change.oldValue, let self = self,
|
||||||
let options = self.dropDown?.json?.optionalArrayForKey(KeyValue) as? [NSString],
|
let options = self.dropDown?.json?.optionalArrayForKey("options") as? [NSString],
|
||||||
let index = options.firstIndex(of: change.newValue!! as NSString),
|
let index = options.firstIndex(of: change.newValue!! as NSString),
|
||||||
let moleculesArrays = self.json?.arrayForKey(KeyMolecules) as? [[[AnyHashable: Any]]] else { return }
|
let moleculesArrays = self.json?.arrayForKey(KeyMolecules) as? [[[AnyHashable: Any]]] else { return }
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user