Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: disable run when not connected (#5342)

Myles Scolnicka27ce26f6e55
diff --git a/frontend/src/components/editor/controls/Controls.tsx b/frontend/src/components/editor/controls/Controls.tsx
index ede392919a..78badc6ed8 100644
--- a/frontend/src/components/editor/controls/Controls.tsx
+++ b/frontend/src/components/editor/controls/Controls.tsx
@@ -148,7 +148,8 @@ const RunControlButton = ({
size="medium"
color="yellow"
shape="circle"
- onClick={onRun}
+ onClick={isConnected ? onRun : undefined}
+ disabled={!isConnected}
>
<PlayIcon strokeWidth={1.5} size={16} />
</Button>