Skip to content

Commit

Permalink
Cannot read property sql_query of undefined: #14104 issue fix
Browse files Browse the repository at this point in the history
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
  • Loading branch information
Piyush3079 committed Mar 22, 2018
1 parent e0a5d8d commit c1559f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/sql.js
Expand Up @@ -873,7 +873,9 @@ AJAX.registerOnload('sql.js', function () {
/**
* Restores SQL query after timeout login
*/
insertQuery('saved');
if (codemirror_editor || document.sqlform) {
insertQuery('saved');
}
});

/*
Expand Down

0 comments on commit c1559f6

Please sign in to comment.