From fbef856a97e6c1a26346acc408619db7804bf80d Mon Sep 17 00:00:00 2001 From: Jesse Lucas Date: Fri, 10 Apr 2020 22:10:12 -0400 Subject: [PATCH] Remove unused columns --- src/app/lists/device-list/device-list.component.ts | 2 +- src/app/services/device.service.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/lists/device-list/device-list.component.ts b/src/app/lists/device-list/device-list.component.ts index 52361cc0e..5b53da4c9 100644 --- a/src/app/lists/device-list/device-list.component.ts +++ b/src/app/lists/device-list/device-list.component.ts @@ -23,7 +23,7 @@ export class DeviceListComponent implements AfterViewInit, OnInit, OnDestroy { dataSource: MatTableDataSource; /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */ - displayedColumns = ['id', 'name', 'state', 'folders']; + displayedColumns = ['id', 'name', 'state']; constructor( private deviceService: DeviceService, diff --git a/src/app/services/device.service.ts b/src/app/services/device.service.ts index f7170b00d..a1c0d995f 100644 --- a/src/app/services/device.service.ts +++ b/src/app/services/device.service.ts @@ -95,7 +95,6 @@ export class DeviceService { // Alloc array if needed if (!device.folders) { device.folders = []; - device.folderNames = []; } folders.forEach(folder => { @@ -106,9 +105,6 @@ export class DeviceService { // Add a reference to the folder to the device device.folders.push(folder); - - // Add string folder name - device.folderNames.push(folder.label); } }); });