Lint fixes

This commit is contained in:
aditya.chandel
2025-01-12 20:30:21 -07:00
parent e9271af75e
commit 00a2d778c0
9 changed files with 17 additions and 19 deletions
@@ -84,7 +84,7 @@ export class BookBrowserComponent implements OnInit {
entityType: EntityType | undefined;
bookTitle: string = '';
entityOptions: MenuItem[] | undefined;
selectedBooks: Set<number> = new Set();
selectedBooks = new Set<number>();
selectedSort: SortOption | null = null;
sortOptions: SortOption[] = [];
isDrawerVisible: boolean = false;
@@ -23,7 +23,7 @@ import {SortOption} from '../../../model/sort.model';
})
export class BookTableComponent implements OnChanges {
selectedBooks: Book[] = [];
selectedBookIds: Set<number> = new Set();
selectedBookIds = new Set<number>();
@Output() selectedBooksChange = new EventEmitter<Set<number>>();
@Input() books: Book[] = [];
@@ -34,7 +34,7 @@ export class BookTableComponent implements OnChanges {
// Hack to set virtual-scroller height
ngOnChanges() {
let wrapperElements: HTMLCollection = document.getElementsByClassName('p-virtualscroller');
const wrapperElements: HTMLCollection = document.getElementsByClassName('p-virtualscroller');
Array.prototype.forEach.call(wrapperElements, function (wrapperElement) {
wrapperElement.style["height"] = 'calc(100vh - 160px)';
});