From 22d585b14e93ebe931f2c3559e1a293ea05ffdb2 Mon Sep 17 00:00:00 2001 From: Omar Oughriss Date: Mon, 28 Jul 2025 11:40:33 +0200 Subject: [PATCH] Updte logs --- .../LayoutTemplates/DefaultNotaryDashboard/index.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx index f3f39ed9..993144fe 100644 --- a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx @@ -107,11 +107,17 @@ export default function DefaultNotaryDashboard(props: IProps) { }, }; + console.log('Query envoyée:', JSON.stringify(query, null, 2)); + Folders.getInstance() .get(query) - .then((folders) => setFolders(folders)); - console.log(JSON.stringify(query)); - console.log(JSON.stringify(folders)); + .then((folders) => { + console.log('Dossiers reçus:', JSON.stringify(folders, null, 2)); + setFolders(folders); + }) + .catch((error) => { + console.error('Erreur lors de la récupération des dossiers:', error); + }); }, [isArchived]); return (