|
|
@@ -49,7 +49,10 @@ export class GenerateProductVariantsComponent implements OnInit {
|
|
|
} = {};
|
|
|
stockLocations$: Observable<Array<ItemOf<GetStockLocationListQuery, 'stockLocations'>>>;
|
|
|
selectedStockLocationId: string | null = null;
|
|
|
- constructor(private dataService: DataService, private formBuilder: FormBuilder) {}
|
|
|
+ constructor(
|
|
|
+ private dataService: DataService,
|
|
|
+ private formBuilder: FormBuilder,
|
|
|
+ ) {}
|
|
|
|
|
|
ngOnInit() {
|
|
|
this.dataService.settings.getActiveChannel().single$.subscribe(data => {
|
|
|
@@ -119,6 +122,7 @@ export class GenerateProductVariantsComponent implements OnInit {
|
|
|
this.variantFormValues[variant.id] = formGroup;
|
|
|
}
|
|
|
});
|
|
|
+ this.onFormChange();
|
|
|
}
|
|
|
|
|
|
trackByFn(index: number, variant: { name: string; values: string[] }) {
|