diff --git a/src/core_plugins/kibana/public/discover/controllers/discover.js b/src/core_plugins/kibana/public/discover/controllers/discover.js index a49348722c370..62ebb265493f4 100644 --- a/src/core_plugins/kibana/public/discover/controllers/discover.js +++ b/src/core_plugins/kibana/public/discover/controllers/discover.js @@ -75,13 +75,12 @@ uiRoutes } }); -app - .directive('discoverApp', function () { - return { - controllerAs: 'discoverApp', - controller: discoverController, - }; - }); +app.directive('discoverApp', function () { + return { + controllerAs: 'discoverApp', + controller: discoverController, + }; +}); function discoverController($scope, config, courier, $route, $window, Notifier, AppState, timefilter, Promise, Private, kbnUrl, highlightTags) { diff --git a/src/ui/public/state_management/state_monitor_factory.js b/src/ui/public/state_management/state_monitor_factory.js index e37aeda2824e6..6fe7d89f08585 100644 --- a/src/ui/public/state_management/state_monitor_factory.js +++ b/src/ui/public/state_management/state_monitor_factory.js @@ -25,6 +25,7 @@ function stateMonitor(state, customInitialState) { } function getStatus() { + // state.toJSON returns a reference, clone so we can mutate it safely const currentState = removeIgnoredProps(cloneDeep(state.toJSON())); const isClean = isEqual(currentState, initialState);