Skip to content

Commit

Permalink
Fix broken remove logic
Browse files Browse the repository at this point in the history
Got broken in commit: b93ae50

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
  • Loading branch information
CommanderRoot committed Jan 24, 2020
1 parent 30b5fc4 commit bc89e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/makegrid.js
Expand Up @@ -1378,7 +1378,7 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid
var tools = $resultQuery.find('.tools').wrap('<p>').parent().html();
// sqlOuter and tools will not be present if 'Show SQL queries' configuration is off
if (typeof sqlOuter !== 'undefined' && typeof tools !== 'undefined') {
$(g.o).find('.result_query').not().last().remove();
$(g.o).find('.result_query').not($(g.o).find('.result_query').last()).remove();
var $existingQuery = $(g.o).find('.result_query');
// If two query box exists update query in second else add a second box
if ($existingQuery.find('div.sqlOuter').length > 1) {
Expand Down

0 comments on commit bc89e83

Please sign in to comment.