Fixed chat button appearing even if build failed
This commit is contained in:
parent
a6f25e97b8
commit
6ab7bbf46c
1 changed files with 0 additions and 11 deletions
|
|
@ -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<any[] | undefined>();
|
||||
const nodes: NodeType[] = useNodes();
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue