Skip to content

Commit

Permalink
Prevent duplicate request on Events initial requests
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriscos committed Oct 18, 2023
1 parent 0248fc9 commit db721a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions plugins/main/public/components/common/modules/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ export const Events = compose(
}
if (fields) {
scope.state.columns = fields;
scope.addColumn(false);
scope.removeColumn(false);
}
this.fetchWatch = scope.$watchCollection('fetchStatus', (fetchStatus) => {
if (scope.fetchStatus === 'complete') {
Expand Down Expand Up @@ -197,7 +195,7 @@ export const Events = compose(
}
}
}

checkUnknownFields(rowDetailField) {
const fieldCell =
rowDetailField.parentNode.childNodes && rowDetailField.parentNode.childNodes[2];
Expand Down
3 changes: 0 additions & 3 deletions plugins/main/public/kibana-integrations/kibana-discover.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,20 +1109,17 @@ function discoverController(
'changeTabView',
async (evt, parameters) => {
$scope.resultState = 'loading';
$scope.$applyAsync();
$scope.tabView = parameters.tabView || 'panels';
$scope.tab = parameters.tab;
$scope.showMain = $scope.tabView === 'discover';

evt.stopPropagation();
if ($scope.tabView === 'discover') {
$scope.rows = false;
$scope.fetch();
}
$scope.handleRefresh({
query: $scope.state.query
}, false);
$scope.$applyAsync();
}
);

Expand Down

0 comments on commit db721a1

Please sign in to comment.