From 151a7e335d3d9c452f1f73fe8c85f248f5af373f Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Sun, 19 Apr 2026 19:12:05 +0200 Subject: [PATCH] feat(inventory): update form submission to use async function in InventoryConsumeForm and InventoryEditForm --- frontend/app/inventory/InventoryConsumeForm.tsx | 2 +- frontend/app/inventory/InventoryEditForm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/inventory/InventoryConsumeForm.tsx b/frontend/app/inventory/InventoryConsumeForm.tsx index 37b646be..727473f5 100644 --- a/frontend/app/inventory/InventoryConsumeForm.tsx +++ b/frontend/app/inventory/InventoryConsumeForm.tsx @@ -36,7 +36,7 @@ export default function InventoryConsumeForm({ id, unit }: Props) { }} >
{ + onSubmit={async (e) => { e.preventDefault(); setError(null); const form = e.currentTarget; diff --git a/frontend/app/inventory/InventoryEditForm.tsx b/frontend/app/inventory/InventoryEditForm.tsx index 70aa3d4a..ff52faa7 100644 --- a/frontend/app/inventory/InventoryEditForm.tsx +++ b/frontend/app/inventory/InventoryEditForm.tsx @@ -72,7 +72,7 @@ export default function InventoryEditForm({ item }: Props) { }} > { + onSubmit={async (e) => { e.preventDefault(); setError(null); const form = e.currentTarget;