From cc10e25445df20ed9cdc4a411d4034e30c096c53 Mon Sep 17 00:00:00 2001 From: Lukas Olson Date: Mon, 5 Aug 2019 15:01:07 -0700 Subject: [PATCH] Remove unnecessary checks --- .../core_plugins/kibana/public/visualize/editor/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js b/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js index 191562488429..4c98e54168c7 100644 --- a/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js +++ b/src/legacy/core_plugins/kibana/public/visualize/editor/editor.js @@ -449,8 +449,8 @@ function VisEditor( (dateRange && !_.isEqual(dateRange, $scope.timeRange)) ); - if (query && !_.isEqual(query, $state.query)) $state.query = query; - if (dateRange && !_.isEqual(dateRange, $scope.timeRange)) timefilter.setTime(dateRange); + $state.query = query; + timefilter.setTime(dateRange); // If nothing has changed, trigger the fetch manually, otherwise it will happen as a result of the changes if (!isUpdate) $scope.fetch();