File tree 1 file changed +2
-4
lines changed
static/app/views/dashboards
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1116,7 +1116,7 @@ class DashboardDetail extends Component<Props, State> {
1116
1116
// The widget builder uses its own pathname at the moment, so check if we're navigating
1117
1117
// between the dashboard and the widget builder
1118
1118
const checkDashboardRoute = ( path : string ) => {
1119
- const widgetBuilderRoutes = [
1119
+ const dashboardRoutes = [
1120
1120
// Legacy routes
1121
1121
/ ^ \/ o r g a n i z a t i o n s \/ .+ \/ d a s h b o a r d s \/ / ,
1122
1122
/ ^ \/ o r g a n i z a t i o n s \/ .+ \/ d a s h b o a r d \/ / ,
@@ -1126,9 +1126,7 @@ class DashboardDetail extends Component<Props, State> {
1126
1126
/ ^ \/ d a s h b o a r d \/ / ,
1127
1127
] ;
1128
1128
1129
- return widgetBuilderRoutes . some ( route =>
1130
- route . test ( path ?? location . pathname )
1131
- ) ;
1129
+ return dashboardRoutes . some ( route => route . test ( path ?? location . pathname ) ) ;
1132
1130
} ;
1133
1131
const navigatingWithinDashboards =
1134
1132
checkDashboardRoute ( locationChange . nextLocation . pathname ) ||
You can’t perform that action at this time.
0 commit comments