From 6ab7bbf46cdc36e6849fce7b9532f74890f9c1fd Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 18 Jan 2024 13:23:44 +0100 Subject: [PATCH] Fixed chat button appearing even if build failed --- src/frontend/src/components/chatComponent/index.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/frontend/src/components/chatComponent/index.tsx b/src/frontend/src/components/chatComponent/index.tsx index a8ad3fc7c..eee83a29c 100644 --- a/src/frontend/src/components/chatComponent/index.tsx +++ b/src/frontend/src/components/chatComponent/index.tsx @@ -32,17 +32,6 @@ export default function Chat({ flow }: ChatType): JSX.Element { }; }, [isBuilt]); - useEffect(() => { - // Define an async function within the useEffect hook - const fetchBuildStatus = async () => { - const response = await getBuildStatus(flow.id); - setIsBuilt(response.data.built); - }; - - // Call the async function - fetchBuildStatus(); - }, [flow]); - const prevNodesRef = useRef(); const nodes: NodeType[] = useNodes(); useEffect(() => {