From 8e55b6602faa08112047c42ff7dd18a0d6082619 Mon Sep 17 00:00:00 2001 From: "michaelwood@onetrail.com" Date: Wed, 23 Sep 2020 21:23:20 +0200 Subject: [PATCH] removed code that causes application crash --- src/multi-select.ios.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/multi-select.ios.ts b/src/multi-select.ios.ts index a655a3b..a753a90 100644 --- a/src/multi-select.ios.ts +++ b/src/multi-select.ios.ts @@ -57,18 +57,6 @@ export class MultiSelect { // on cancel button tapped if (options.onCancel) { this.MSSelect.cancelBlock = (p1: any) => { - const mutableArray: NSMutableArray = NSMutableArray.array(); - - // remove all selected items that doesn't belong to predefined - options.items.forEach((item, index) => { - const model: AAMultiSelectModel = AAMultiSelectModel.new(); - model.title = item; - model.isSelected = false; - model.multiSelectId = index; - mutableArray.addObject(model); - }); - - this.MSSelect.dataArray = mutableArray; options.onCancel(); }; }