Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: destructive query warning on run button (#33801)

Alaister Youngbd56cc67bc7e
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx
index 26bac02eec1..03faf85ac5d 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx
@@ -19,9 +19,13 @@ export const SqlRunButton = ({
}: SqlRunButtonProps) => {
const os = detectOS()
+ function handleOnClick() {
+ onClick()
+ }
+
return (
<Button
- onClick={onClick}
+ onClick={handleOnClick}
disabled={isDisabled}
type="primary"
size="tiny"