Fixing for comments
This commit is contained in:
parent
5534f6ba58
commit
70c3da70d5
@ -515,12 +515,11 @@ import MVMCore
|
||||
isEnabled(enabled)
|
||||
}
|
||||
|
||||
guard let action = checkboxModel.action else { return }
|
||||
actionBlock = {
|
||||
if let data = try? action.encode(using: JSONEncoder()),
|
||||
let actionMap = try? JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions.init()) as? [AnyHashable: Any] {
|
||||
MVMCoreActionHandler.shared()?.handleAction(with: actionMap, additionalData: additionalData, delegateObject: delegateObject)
|
||||
|
||||
if let action = checkboxModel.action {
|
||||
actionBlock = {
|
||||
if let actionMap = action.toJSON() {
|
||||
MVMCoreActionHandler.shared()?.handleAction(with: actionMap, additionalData: additionalData, delegateObject: delegateObject)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user