Commit 5f621a73 by Torkel Ödegaard Committed by GitHub

Dashboard: Go to explore now works even after discarding dashboard changes (#24149)

* Explore: Fix issue with going to explore

* removed console log
parent 215f2e00
......@@ -6,7 +6,6 @@ import { GrafanaRootScope } from 'app/routes/GrafanaCtrl';
import { AppEventConsumer, CoreEvents } from 'app/types';
import { appEvents } from 'app/core/app_events';
import { UnsavedChangesModal } from '../components/SaveDashboard/UnsavedChangesModal';
import { getLocationSrv } from '@grafana/runtime';
export class ChangeTracker {
current: any;
......@@ -188,8 +187,9 @@ export class ChangeTracker {
gotoNext = () => {
const baseLen = this.$location.absUrl().length - this.$location.url().length;
const nextUrl = this.next.substring(baseLen);
getLocationSrv().update({
path: nextUrl,
this.$timeout(() => {
this.$location.url(nextUrl);
});
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment