Skip to content

Commit

Permalink
Merge pull request sadmann7#62 from Adamkaram/main-2
Browse files Browse the repository at this point in the history
Update update-product-form.tsx
  • Loading branch information
sadmann7 authored Sep 4, 2023
2 parents cb7f319 + ec98aae commit 0682ecb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/forms/update-product-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ export function UpdateProductForm({ product }: UpdateProductFormProps) {
</Button>
<Button
variant="destructive"

onClick={() => {
void form.trigger(["name", "price" ,"inventory" ])
startTransition(async () => {
await deleteProductAction({
storeId: product.storeId,
Expand Down

0 comments on commit 0682ecb

Please sign in to comment.