From ab486a245e034d6124747dbd0ffc86a60daab8ab Mon Sep 17 00:00:00 2001 From: nael Date: Wed, 24 Apr 2024 02:30:25 +0200 Subject: [PATCH] :bug: Fix a bug fix --- apps/client-ts/src/components/RootLayout/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client-ts/src/components/RootLayout/index.tsx b/apps/client-ts/src/components/RootLayout/index.tsx index 18a1b5917..3c3cec60f 100644 --- a/apps/client-ts/src/components/RootLayout/index.tsx +++ b/apps/client-ts/src/components/RootLayout/index.tsx @@ -69,7 +69,7 @@ export const RootLayout = () => { }, [data, setProfile]); // Effect for fetching projects - useEffect(() => { + /*useEffect(() => { if (profile && profile.id_user) { console.log("profile is => " + JSON.stringify(profile)); const fetchProjects = async () => { @@ -84,7 +84,7 @@ export const RootLayout = () => { fetchProjects(); } }, [profile, setIdProject, setProjects]); // Depend on profile.id_user to trigger this effect - + */ // Handling loading and error if (isLoading) { console.log("loading profiles");