Fix issue with navigating in firefox/safari (#65163)
This commit is contained in:
parent
fd99deb397
commit
09deb23b7c
|
@ -160,10 +160,19 @@ export function initVisualizeApp(app, deps) {
|
|||
);
|
||||
}
|
||||
|
||||
// This delay is needed to prevent some navigation issues in Firefox/Safari.
|
||||
// see https://github.com/elastic/kibana/issues/65161
|
||||
const delay = res => {
|
||||
return new Promise(resolve => {
|
||||
setTimeout(() => resolve(res), 0);
|
||||
});
|
||||
};
|
||||
|
||||
return data.indexPatterns
|
||||
.ensureDefaultIndexPattern(history)
|
||||
.then(() => savedVisualizations.get($route.current.params))
|
||||
.then(getResolvedResults(deps))
|
||||
.then(delay)
|
||||
.catch(
|
||||
redirectWhenMissing({
|
||||
history,
|
||||
|
|
Loading…
Reference in a new issue