Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Commit fbef856

Browse files
committed
Remove unused columns
1 parent 3b7c760 commit fbef856

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/app/lists/device-list/device-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class DeviceListComponent implements AfterViewInit, OnInit, OnDestroy {
2323
dataSource: MatTableDataSource<Device>;
2424

2525
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
26-
displayedColumns = ['id', 'name', 'state', 'folders'];
26+
displayedColumns = ['id', 'name', 'state'];
2727

2828
constructor(
2929
private deviceService: DeviceService,

src/app/services/device.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export class DeviceService {
9595
// Alloc array if needed
9696
if (!device.folders) {
9797
device.folders = [];
98-
device.folderNames = [];
9998
}
10099

101100
folders.forEach(folder => {
@@ -106,9 +105,6 @@ export class DeviceService {
106105

107106
// Add a reference to the folder to the device
108107
device.folders.push(folder);
109-
110-
// Add string folder name
111-
device.folderNames.push(folder.label);
112108
}
113109
});
114110
});

0 commit comments

Comments
 (0)