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:
commit
09b467cac4
@ -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