Skip to content

Commit

Permalink
Fix Execute Selected not working for dirty queries (#4176)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldutra authored Sep 24, 2019
1 parent 401d164 commit 874e0d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/app/pages/queries/view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pick, some, find, minBy, map, intersection, isArray, omit } from 'lodash';
import { pick, some, find, minBy, map, intersection, isEmpty, isArray, omit } from 'lodash';
import { SCHEMA_NOT_SUPPORTED, SCHEMA_LOAD_ERROR } from '@/services/data-source';
import getTags from '@/services/getTags';
import { policy } from '@/services/policy';
Expand Down Expand Up @@ -42,7 +42,7 @@ function QueryViewCtrl(
}

$scope.showLog = false;
if ($scope.isDirty) {
if ($scope.isDirty || !isEmpty(selectedQueryText)) {
$scope.queryResult = $scope.query.getQueryResultByText(maxAge, selectedQueryText);
} else {
$scope.queryResult = $scope.query.getQueryResult(maxAge);
Expand Down

0 comments on commit 874e0d1

Please sign in to comment.