From bd07df3fae19448ef4884087663d662a04f3eec9 Mon Sep 17 00:00:00 2001 From: David Saltares Date: Tue, 1 Oct 2024 10:02:57 +0200 Subject: [PATCH] fix: bulk cupdate category --- src/components/UpdateTransactionsDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UpdateTransactionsDialog.tsx b/src/components/UpdateTransactionsDialog.tsx index cdb8cd8..f1a359b 100644 --- a/src/components/UpdateTransactionsDialog.tsx +++ b/src/components/UpdateTransactionsDialog.tsx @@ -106,7 +106,7 @@ export default function UpdateTransactionsDialog({ ); await onUpdate({ ...data, - categoryId: data.category ? parseInt(data.category.id, 10) : null, + categoryId: data.categoryId ? parseInt(data.categoryId, 10) : null, }); } onClose();