Gene/protein annotation panel #issuecomment-892469989
@@ -92,13 +92,13 @@ export default class ngbBlatSearchController extends baseController {
});
await this.loadData();
- this.$timeout(this.$scope.$apply());
+ this.$timeout(() => this.$scope.$apply());
} else {
this.blatSearchEmptyResult = null;
this.isProgressShown = false;
this.gridOptions.columnDefs = [];
- this.$timeout(this.$scope.$apply());
+ this.$timeout(() => this.$scope.$apply());
}
}
@@ -176,12 +176,10 @@ export default class ngbBlatSearchController extends baseController {
sortChanged(grid, sortColumns) {
this.saveColumnsState();
if (sortColumns && sortColumns.length > 0) {
- this.blatSearchService.orderBy = sortColumns.map((sc) => {
- return {
+ this.blatSearchService.orderBy = sortColumns.map((sc) => ({
field: sc.field,
desc: sc.sort.direction === 'desc',
- };
- });
+ }));
} else {
this.blatSearchService.orderBy = null;
}
