Added missing saveAs imports

This commit is contained in:
Isaac Abadi
2023-12-02 03:11:22 -05:00
parent 7cf5d86fc3
commit 6152df3486
6 changed files with 8 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ import { distinctUntilChanged } from 'rxjs/operators';
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
import { MatChipListboxChange } from '@angular/material/chips';
import { MatSelectionListChange } from '@angular/material/list';
import { saveAs } from 'file-saver';
@Component({
selector: 'app-recent-videos',
@@ -380,8 +381,8 @@ export class RecentVideosComponent implements OnInit {
fileSelectionChanged(event: MatSelectionListChange): void {
// TODO: make sure below line is possible (_selected is private)
const adding = event.option['_selected'];
const value = event.option.value;
const adding = event.options['_selected'];
const value = adding.value;
if (adding) {
this.selected_data.push(value.uid);
this.selected_data_objs.push(value);