Digital PCT265 defect CXTDT-579049: Add indexing safety to track action call.

This commit is contained in:
Hedden, Kyle Matthew 2024-06-28 09:13:49 -04:00
parent 3cdd74f097
commit 525f0f8f0a

View File

@ -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)
}