aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/topbar
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-14 14:37:43 -0400
committerbobzel <zzzman@gmail.com>2022-09-14 14:37:43 -0400
commit081873137bfa860a183e10402073a36605d4d189 (patch)
tree3b2b5b20d153f93bb6eef1f0a6c371084f4c8b28 /src/client/views/topbar
parent9e24fb58f5cb7fca663c30e32b59dc70b80fa739 (diff)
parent1dd8e0bf7901700ef0eded57169cd4078a61cdd0 (diff)
Merge branch 'master' into sharing-jenny
Diffstat (limited to 'src/client/views/topbar')
-rw-r--r--src/client/views/topbar/TopBar.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/topbar/TopBar.tsx b/src/client/views/topbar/TopBar.tsx
index cbcfed06f..096b2561f 100644
--- a/src/client/views/topbar/TopBar.tsx
+++ b/src/client/views/topbar/TopBar.tsx
@@ -28,12 +28,12 @@ import { ReportManager } from '../../util/ReportManager';
@observer
export class TopBar extends React.Component {
navigateToHome = () => {
- CollectionDockingView.Instance?.CaptureThumbnail()?.then(() => {
+ (CollectionDockingView.Instance?.CaptureThumbnail() ?? new Promise<void>(res => res())).then(() => {
Doc.ActivePage = 'home';
DashboardView.closeActiveDashboard(); // bcz: if we do this, we need some other way to keep track, for user convenience, of the last dashboard in use
});
};
-
+
render() {
const activeDashboard = Doc.ActiveDashboard;
return (