Merge branch 'bugfix/dropdown_key_name_fix' into 'develop'

key name mismatch fix.

See merge request BPHV_MIPS/mvm_core_ui!191
This commit is contained in:
Pfeil, Scott Robert 2019-12-02 09:13:28 -05:00
commit 09b467cac4

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 }