From c0c556cfb8846c97085f635f05f7c12d5cd8eab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 1 Dec 2024 22:46:11 +0400 Subject: [PATCH] Fix error when creating comment --- components/konstitisyon/create/handle-create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/konstitisyon/create/handle-create.js b/components/konstitisyon/create/handle-create.js index fd68999..792f36c 100644 --- a/components/konstitisyon/create/handle-create.js +++ b/components/konstitisyon/create/handle-create.js @@ -36,7 +36,7 @@ export default function HandleCreate({ case 'commentaires': { requestObject = { contenu: formattedContent, - titre: selectedTitre, + titre: selectedTitre.id, status: 'draft', }