[Maps] trigger digest cycle on kbnUrl.change (#27812)

* [Maps] trigger digest cycle on kbnUrl.change

* remove extra space
This commit is contained in:
Nathan Reese 2019-01-01 18:03:03 -07:00 committed by GitHub
parent 1a8ae1505b
commit 280fa97500
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,9 @@ app.controller('GisMapController', ($scope, $route, config, kbnUrl) => {
});
if (savedMap.id !== $route.current.params.id) {
kbnUrl.change(`map/{{id}}`, { id: savedMap.id });
$scope.$evalAsync(() => {
kbnUrl.change(`map/{{id}}`, { id: savedMap.id });
});
}
}
return { id };