aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/topbar
diff options
context:
space:
mode:
authorJenny Yu <jennyyu212@outlook.com>2022-06-09 21:05:20 -0700
committerJenny Yu <jennyyu212@outlook.com>2022-06-09 21:05:20 -0700
commitc159cec257544ff10c256181d1aedfccf3ae7843 (patch)
treec257fbf25c4ec3030e5964dde15fd8e53e1370dd /src/client/views/topbar
parent5089c14ca27a52326d3f38e7f3ef572548f72d2a (diff)
fix: close active dashboard
Diffstat (limited to 'src/client/views/topbar')
-rw-r--r--src/client/views/topbar/TopBar.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx
index 79d48e13c..57ceac2dd 100644
--- a/src/client/views/topbar/TopBar.tsx
+++ b/src/client/views/topbar/TopBar.tsx
@@ -22,6 +22,7 @@ import "./TopBar.scss";
@observer
export class TopBar extends React.Component {
navigateToHome = () => {
+ CurrentUserUtils.closeActiveDashboard();
CurrentUserUtils.CaptureDashboardThumbnail()?.then(() => Doc.UserDoc().activePage = "home");
}
render() {