Skip to content

Commit

Permalink
fix(admin-ui): Prevent product creation without variants
Browse files Browse the repository at this point in the history
Fixes #2337
  • Loading branch information
michaelbromley committed Aug 11, 2023
1 parent e5ad0ee commit 3364559
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class="btn btn-primary"
*ngIf="isNew$ | async; else updateButton"
(click)="create()"
[disabled]="detailForm.invalid || detailForm.pristine"
[disabled]="detailForm.invalid || detailForm.pristine || createVariantsConfig.variants.length === 0"
>
{{ 'common.create' | translate }}
</button>
Expand Down

0 comments on commit 3364559

Please sign in to comment.