Skip to content

Commit

Permalink
Merge pull request #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 ace2ae1 + 15aee19 commit bcba848
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

1 comment on commit bcba848

@vercel
Copy link

@vercel vercel bot commented on bcba848 Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.