additional change for empty
This commit is contained in:
parent
86d2669bec
commit
dd19a51417
@ -30,7 +30,8 @@ import UIKit
|
|||||||
let self = self,
|
let self = self,
|
||||||
let index = self.dropDown.pickerData.firstIndex(of: newValue),
|
let index = self.dropDown.pickerData.firstIndex(of: newValue),
|
||||||
let dropListItemJSON = (self.listItemModel as? DropDownListItemModel).toJSON(),
|
let dropListItemJSON = (self.listItemModel as? DropDownListItemModel).toJSON(),
|
||||||
let json2d = dropListItemJSON.optionalArrayForKey("molecules") as? [[[AnyHashable: Any]]]
|
let json2d = dropListItemJSON.optionalArrayForKey("molecules") as? [[[AnyHashable: Any]]],
|
||||||
|
!json2d.isEmpty && !(json2d.first?.isEmpty ?? false)
|
||||||
else { return }
|
else { return }
|
||||||
|
|
||||||
if self.previousIndex != NSNotFound {
|
if self.previousIndex != NSNotFound {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user