Skip to content

Commit

Permalink
Name var originalDocumentTitle
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Aug 19, 2021
1 parent b9c0136 commit b6a07c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/dashboard/containers/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const DashboardContainer = React.lazy(
),
);

const documentTitle = document.title;
const originalDocumentTitle = document.title;

const DashboardPage: FC = () => {
const dispatch = useDispatch();
Expand Down Expand Up @@ -74,7 +74,7 @@ const DashboardPage: FC = () => {
document.title = dashboard_title;
}
return () => {
document.title = documentTitle;
document.title = originalDocumentTitle;
};
}, [dashboard_title]);

Expand Down

0 comments on commit b6a07c3

Please sign in to comment.