diff --git a/src/plugins/kibana/public/settings/sections/advanced/index.js b/src/plugins/kibana/public/settings/sections/advanced/index.js index 69f22110b316a..bcff939994f56 100644 --- a/src/plugins/kibana/public/settings/sections/advanced/index.js +++ b/src/plugins/kibana/public/settings/sections/advanced/index.js @@ -42,8 +42,12 @@ define(function (require) { .value(); } + // react to changes of the config values + var unhook = $rootScope.$on('change:config', readConfigVals); + $scope.$on('$destroy', unhook); + + // initial config setup readConfigVals(); - $rootScope.$on('change:config', readConfigVals); } }; });