From b06bdaffedd368f24724bdc40d23d70dc0225ed6 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Fri, 21 Jun 2024 16:59:00 +0200 Subject: [PATCH] fix(admin-ui): Fix error on new product creation Fixes #2915 --- .../generate-product-variants.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/admin-ui/src/lib/catalog/src/components/generate-product-variants/generate-product-variants.component.ts b/packages/admin-ui/src/lib/catalog/src/components/generate-product-variants/generate-product-variants.component.ts index 7d9986304f..27d110fdd9 100644 --- a/packages/admin-ui/src/lib/catalog/src/components/generate-product-variants/generate-product-variants.component.ts +++ b/packages/admin-ui/src/lib/catalog/src/components/generate-product-variants/generate-product-variants.component.ts @@ -1,5 +1,5 @@ import { Component, ElementRef, EventEmitter, OnInit, Output, QueryList, ViewChildren } from '@angular/core'; -import { AbstractControl, FormArray, FormBuilder, FormControl, FormGroup } from '@angular/forms'; +import { AbstractControl, FormBuilder, FormControl, FormGroup } from '@angular/forms'; import { CurrencyCode, DataService, @@ -70,6 +70,7 @@ export class GenerateProductVariantsComponent implements OnInit { tap(items => { if (items.length) { this.selectedStockLocationId = items[0].id; + this.onFormChange(); } }), );