key name mismatch fix.

This commit is contained in:
Khan, Arshad 2019-11-28 20:48:07 +05:30
parent ad8b48b699
commit dc5174cbe4

View File

@ -33,7 +33,7 @@ import UIKit
options: [.old, .new]
) { [weak self] object, change in
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 moleculesArrays = self.json?.arrayForKey(KeyMolecules) as? [[[AnyHashable: Any]]] else { return }