From 53397a5573a4ae01585d4c02e52da0c5c6652033 Mon Sep 17 00:00:00 2001 From: Alex Dik Date: Tue, 30 Aug 2016 15:54:48 +0200 Subject: [PATCH] Fix TSC output --- .../modals/columns-modal/columns-modal.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/modals/columns-modal/columns-modal.service.ts b/frontend/app/components/modals/columns-modal/columns-modal.service.ts index 91e2ff244e..bb42d60bbd 100644 --- a/frontend/app/components/modals/columns-modal/columns-modal.service.ts +++ b/frontend/app/components/modals/columns-modal/columns-modal.service.ts @@ -76,7 +76,7 @@ function ColumnsModalController($scope, }); function getColumnNames(arr) { - return _.map(arr, column => column.name); + return arr.map(column => column.name); } vm.updateSelectedColumns = () => { @@ -97,7 +97,7 @@ function ColumnsModalController($scope, vm.updateUnusedColumns = selectedColumns => { var used = getColumnNames(selectedColumns); - vm.unusedColumns = _.filter(vm.availableColumns, column => !_.contains(used, column.name)); + vm.unusedColumns = vm.availableColumns.filter(column => !_.contains(used, column.name)); }; vm.setSelectedColumn = column => { @@ -105,7 +105,7 @@ function ColumnsModalController($scope, vm.selectedColumns.push(column); } else { - _.remove(vm.selectedColumns, c => c.name === column.name); + _.remove(vm.selectedColumns, (c: any) => c.name === column.name); } };