diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor.tsx index 874e9d4b87c..e4f63e7d76b 100644 --- a/apps/studio/components/interfaces/Explorer/QueryEditor.tsx +++ b/apps/studio/components/interfaces/Explorer/QueryEditor.tsx @@ -77,7 +77,7 @@ export const QueryEditor = ({ const handleRunQuery = (sqlToRun: string = sql) => { if (!project || isLoadingProject || isExecuting || sqlToRun.trim().length === 0) return - onSqlCommit?.(sqlToRun) + onSqlCommit?.(sql) const safeSql = acceptUntrustedSql(untrustedSql(sqlToRun)) const limitedSql = applyAutoLimit(safeSql, rowLimit)