Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: non select sql editor pop up (#18255)

p0nyd98d3f72db5c
diff --git a/frontend/src/composables/useExecuteSQL.ts b/frontend/src/composables/useExecuteSQL.ts
index 8eedb5961e..8110da2612 100644
--- a/frontend/src/composables/useExecuteSQL.ts
+++ b/frontend/src/composables/useExecuteSQL.ts
@@ -329,15 +329,12 @@ const useExecuteSQL = () => {
flattenNoSQLResult(resultSet);
}
- if (resultSet.error) {
- // The error message should be consistent with the one from the backend.
- if (isOnlySelectError(resultSet)) {
- // Show a tips to navigate to issue creation
- // if the user is allowed to create issue in the project.
- if (hasPermissionToCreateChangeDatabaseIssue(database)) {
- sqlEditorStore.isShowExecutingHint = true;
- sqlEditorStore.executingHintDatabase = database;
- }
+ if (isOnlySelectError(resultSet)) {
+ // Show a tips to navigate to issue creation
+ // if the user is allowed to create issue in the project.
+ if (hasPermissionToCreateChangeDatabaseIssue(database)) {
+ sqlEditorStore.isShowExecutingHint = true;
+ sqlEditorStore.executingHintDatabase = database;
}
return finish(resultSet);
}