From da74cba9936e66b0227feb84d8087a99f2e01774 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sun, 30 May 2021 21:14:04 +0200 Subject: [PATCH] Clean up --- .../components/accounts-table/accounts-table.component.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/client/src/app/components/accounts-table/accounts-table.component.ts b/apps/client/src/app/components/accounts-table/accounts-table.component.ts index 54e02f08a..3a7a592f6 100644 --- a/apps/client/src/app/components/accounts-table/accounts-table.component.ts +++ b/apps/client/src/app/components/accounts-table/accounts-table.component.ts @@ -6,10 +6,8 @@ import { OnChanges, OnDestroy, OnInit, - Output, - ViewChild + Output } from '@angular/core'; -import { MatSort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { Account as AccountModel } from '@prisma/client'; import { Subject, Subscription } from 'rxjs'; @@ -30,8 +28,6 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit { @Output() accountDeleted = new EventEmitter(); @Output() accountToUpdate = new EventEmitter(); - @ViewChild(MatSort) sort: MatSort; - public dataSource: MatTableDataSource = new MatTableDataSource(); public displayedColumns = []; public isLoading = true; @@ -54,7 +50,6 @@ export class AccountsTableComponent implements OnChanges, OnDestroy, OnInit { if (this.accounts) { this.dataSource = new MatTableDataSource(this.accounts); - this.dataSource.sort = this.sort; this.isLoading = false; }