diff --git a/packages/admin-ui/src/lib/catalog/src/components/create-product-variant-dialog/create-product-variant-dialog.component.ts b/packages/admin-ui/src/lib/catalog/src/components/create-product-variant-dialog/create-product-variant-dialog.component.ts index 00ff9e483c..f6dc07bf9c 100644 --- a/packages/admin-ui/src/lib/catalog/src/components/create-product-variant-dialog/create-product-variant-dialog.component.ts +++ b/packages/admin-ui/src/lib/catalog/src/components/create-product-variant-dialog/create-product-variant-dialog.component.ts @@ -1,5 +1,5 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; -import { FormBuilder, FormControl, FormGroup, FormRecord, Validators } from '@angular/forms'; +import { FormBuilder, FormControl, FormRecord, Validators } from '@angular/forms'; import { CreateProductVariantInput, CurrencyCode, @@ -7,7 +7,6 @@ import { GetProductVariantOptionsQuery, } from '@vendure/admin-ui/core'; import { notNullOrUndefined } from '@vendure/common/lib/shared-utils'; -import { combineLatest } from 'rxjs'; @Component({ selector: 'vdr-create-product-variant-dialog', @@ -20,7 +19,7 @@ export class CreateProductVariantDialogComponent implements Dialog; form = this.formBuilder.group({ name: ['', Validators.required], - sku: ['', Validators.required], + sku: [''], price: [''], options: this.formBuilder.record({}), }); @@ -67,14 +66,14 @@ export class CreateProductVariantDialogComponent implements Dialog