Fix: Rate contract update.

This commit is contained in:
2025-07-17 11:05:57 +00:00
parent b1d5ff7df6
commit 0a60a4be6a
3 changed files with 3 additions and 1 deletions

View File

@ -61,7 +61,7 @@
[displayWith]="displayFn"
(optionSelected)="productSelected($event)"
>
@for (product of products | async; track product) {
@for (product of products | async; track product.id) {
<mat-option [value]="product">{{ product.name }}</mat-option>
}
</mat-autocomplete>

View File

@ -137,6 +137,7 @@ export class RateContractDetailComponent implements OnInit, AfterViewInit {
},
narration: this.item.narration,
});
this.account = this.item.vendor || null;
this.dataSource = new RateContractDetailDatasource(this.itemsObservable);
this.updateView();
}