Skip to content

Commit

Permalink
Removed "async" in event listener (not needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Ángel committed Aug 16, 2019
1 parent dabb7f7 commit bd82823
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/kibana-integrations/kibana-discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,12 @@ function discoverController(
$scope.updateQueryAndFetch = function({ query, dateRange }) {
// Wazuh filters are not ready yet
if (!filtersAreReady()) return;

// Update query from search bar
discoverPendingUpdates.removeAll();
discoverPendingUpdates.addItem($state.query, queryFilter.getFilters());
$rootScope.$broadcast('updateVis');

timefilter.setTime(dateRange);
if (query) $state.query = query;
$scope.fetch();
Expand Down Expand Up @@ -1039,7 +1039,7 @@ function discoverController(
$scope.tabView = $location.search().tabView || 'panels';
const changeTabViewListener = $rootScope.$on(
'changeTabView',
async (evt, parameters) => {
(evt, parameters) => {
$scope.pinnedFilters = getPinnedFilters();
if (parameters.tabView !== 'discover') {
queryFilter.removeAll();
Expand Down

0 comments on commit bd82823

Please sign in to comment.