Digital PCT265 defect CXTDT-579049: Add indexing safety to track action call.
This commit is contained in:
parent
3cdd74f097
commit
525f0f8f0a
@ -361,7 +361,7 @@ open class Carousel: View {
|
||||
}
|
||||
|
||||
func trackSwipeActionAnalyticsforIndex(_ index : Int){
|
||||
guard let itemModel = molecules?[index],
|
||||
guard let itemModel = molecules?[safe:index],
|
||||
let viewControllerObject = delegateObject?.moleculeDelegate as? MVMCoreViewControllerProtocol else { return }
|
||||
MVMCoreUILoggingHandler.shared()?.defaultLogAction(forController: viewControllerObject, actionInformation: itemModel.toJSON(), additionalData: nil)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user