fix scope digest issue with new button in discover (#45913)

This commit is contained in:
Joe Reuter 2019-09-17 22:00:48 +02:00 committed by Chris Davies
parent 6a091380b1
commit 1fba0f7c45

View file

@ -251,7 +251,7 @@ function discoverController(
description: i18n.translate('kbn.discover.localMenu.newSearchDescription', {
defaultMessage: 'New Search',
}),
run: function () { kbnUrl.change('/discover'); },
run: function () { $scope.$evalAsync(() => { kbnUrl.change('/discover'); }); },
testId: 'discoverNewButton',
};