quit edit mode when disconnect

This commit is contained in:
zombieyang
2025-04-12 03:43:41 +08:00
parent f8533a4a36
commit 49bb5834e1
@@ -42,6 +42,11 @@ export function Content({
setEditorMode(false);
}
}, [workflowAgentSID, webviewAgentSID]);
useEffect(() => {
if (connectState === 'disconnected') {
setEditorMode(false);
}
}, [connectState]);
return (
<>
<div className="connect-box">