mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Go to explore now works even after discarding dashboard changes (#24149)
* Explore: Fix issue with going to explore * removed console log
This commit is contained in:
parent
215f2e005b
commit
5f621a736a
@ -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);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user