Skip to content

Commit

Permalink
Remove enforced unique validation on SKU
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Dec 2, 2024
1 parent 736d14c commit 45028de
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ public function form(Form $form): Form

return $form->schema([
Section::make()->schema([
ProductVariantResource::getSkuFormComponent()
->live()->unique(
table: fn () => $variant->getTable(),
ignorable: $variant,
ignoreRecord: true,
),
ProductVariantResource::getSkuFormComponent()->live(),
ProductVariantResource::getGtinFormComponent(),
ProductVariantResource::getMpnFormComponent(),
ProductVariantResource::getEanFormComponent(),
Expand Down

0 comments on commit 45028de

Please sign in to comment.