Skip to content

Commit 48d51d2

Browse files
committed
fix naming
1 parent c7839fc commit 48d51d2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

static/app/views/dashboards/detail.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ class DashboardDetail extends Component<Props, State> {
11161116
// The widget builder uses its own pathname at the moment, so check if we're navigating
11171117
// between the dashboard and the widget builder
11181118
const checkDashboardRoute = (path: string) => {
1119-
const widgetBuilderRoutes = [
1119+
const dashboardRoutes = [
11201120
// Legacy routes
11211121
/^\/organizations\/.+\/dashboards\//,
11221122
/^\/organizations\/.+\/dashboard\//,
@@ -1126,9 +1126,7 @@ class DashboardDetail extends Component<Props, State> {
11261126
/^\/dashboard\//,
11271127
];
11281128

1129-
return widgetBuilderRoutes.some(route =>
1130-
route.test(path ?? location.pathname)
1131-
);
1129+
return dashboardRoutes.some(route => route.test(path ?? location.pathname));
11321130
};
11331131
const navigatingWithinDashboards =
11341132
checkDashboardRoute(locationChange.nextLocation.pathname) ||

0 commit comments

Comments
 (0)