From bd56cc67bc7ebcff565353acb729df64be5ac829 Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Mon, 24 Feb 2025 23:58:20 +1100 Subject: [PATCH] fix: destructive query warning on run button (#33801) --- .../interfaces/SQLEditor/UtilityPanel/RunButton.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 (