mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where Execute/Refresh button should not be disabled when we run the empty query. Fixes #6489
This commit is contained in:
committed by
Akshay Joshi
parent
09d8d0f362
commit
a533620684
@@ -56,7 +56,11 @@ class ExecuteQuery {
|
||||
|
||||
execute(sqlStatement, explainPlan, connect) {
|
||||
// If it is an empty query, do nothing.
|
||||
if (sqlStatement.length <= 0) return;
|
||||
if (sqlStatement.length <= 0) {
|
||||
// Enable query execution button if user execute empty query.
|
||||
$('#btn-flash').prop('disabled', false);
|
||||
return;
|
||||
}
|
||||
|
||||
const self = this;
|
||||
self.explainPlan = explainPlan;
|
||||
|
||||
Reference in New Issue
Block a user