Upgraded to Angular v21
Removed tailwind Moved to vitest from karma/jasmine
This commit is contained in:
@ -9,9 +9,9 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
|
||||
import { debounceTime, distinctUntilChanged, Observable } from 'rxjs';
|
||||
import { PagedResult } from 'src/app/core/paged-result';
|
||||
|
||||
import { Customer } from '../../core/customer';
|
||||
import { PagedResult } from '../../core/paged-result';
|
||||
import { CustomerListDatasource } from './customer-list-datasource';
|
||||
|
||||
@Component({
|
||||
@ -65,7 +65,7 @@ export class CustomerListComponent implements OnInit, AfterViewInit {
|
||||
}
|
||||
this.route.data.subscribe((value) => {
|
||||
const data = value as { data: PagedResult<Customer> };
|
||||
data.data.items.forEach((c) => (c.discounts = c.discounts.filter((d) => d.discount !== 0)));
|
||||
data.data.items.forEach((c: Customer) => (c.discounts = c.discounts.filter((d) => d.discount !== 0)));
|
||||
this.data = data.data;
|
||||
this.dataSource = new CustomerListDatasource(this.data, this.paginator, this.sort);
|
||||
this.cdr.detectChanges();
|
||||
|
||||
Reference in New Issue
Block a user