Feature: Adding recipe templates to print recipes.
Feautre: Recipe export to xlsx Chore: Python 11 style type annotations Chore: Moved to sqlalchemy 2.0 Chore: Minimum python is 3.11 Fix: Fix nullability of a lot of fields in the database.
This commit is contained in:
@@ -20,11 +20,7 @@ export class ProductLedgerDataSource extends DataSource<ProductLedgerItem> {
|
||||
}
|
||||
|
||||
connect(): Observable<ProductLedgerItem[]> {
|
||||
const dataMutations: (
|
||||
| Observable<ProductLedgerItem[]>
|
||||
| EventEmitter<PageEvent>
|
||||
| EventEmitter<Sort>
|
||||
)[] = [observableOf(this.data)];
|
||||
const dataMutations: (EventEmitter<PageEvent> | EventEmitter<Sort>)[] = [];
|
||||
if (this.paginator) {
|
||||
dataMutations.push((this.paginator as MatPaginator).page);
|
||||
}
|
||||
@@ -36,10 +32,10 @@ export class ProductLedgerDataSource extends DataSource<ProductLedgerItem> {
|
||||
if (this.paginator) {
|
||||
this.paginator.length = this.data.length;
|
||||
}
|
||||
|
||||
return merge(...dataMutations).pipe(
|
||||
const a = merge(observableOf(this.data), ...dataMutations).pipe(
|
||||
map(() => this.getPagedData(this.getSortedData([...this.data]))),
|
||||
);
|
||||
return a;
|
||||
}
|
||||
|
||||
disconnect() {}
|
||||
|
||||
Reference in New Issue
Block a user