Remove unused columns

This commit is contained in:
Jesse Lucas 2020-04-10 22:10:12 -04:00
parent 3b7c760ffd
commit fbef856a97
2 changed files with 1 additions and 5 deletions

View File

@ -23,7 +23,7 @@ export class DeviceListComponent implements AfterViewInit, OnInit, OnDestroy {
dataSource: MatTableDataSource<Device>;
/** 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,

View File

@ -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);
}
});
});