diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:17 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:17 -0400 |
| commit | 669d20040a727cf0599126eccffb175643d4fa09 (patch) | |
| tree | f14822bbda878b48301d8c7f4de89473bcfd6dc7 /src/client/views/DashboardView.tsx | |
| parent | e691d8e72ba632f0ef2d4122fe7233f9a48d4439 (diff) | |
| parent | b99e32960ff624237ca99c8d6ee756026a79003a (diff) | |
Merge branch 'master' into data-visualization-view-naafi
Diffstat (limited to 'src/client/views/DashboardView.tsx')
| -rw-r--r-- | src/client/views/DashboardView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx index efc1644fe..a126218c4 100644 --- a/src/client/views/DashboardView.tsx +++ b/src/client/views/DashboardView.tsx @@ -28,14 +28,14 @@ export class DashboardView extends React.Component { newDashboard = async () => { const batch = UndoManager.StartBatch("new dash"); - await CurrentUserUtils.createNewDashboard(Doc.UserDoc()); + await CurrentUserUtils.createNewDashboard(); batch.end(); } clickDashboard = async (e: React.MouseEvent, dashboard: Doc) => { if (e.detail === 2) { - Doc.UserDoc().activeDashboard = dashboard; - Doc.UserDoc().activePage = "dashboard"; + CurrentUserUtils.ActiveDashboard = dashboard; + CurrentUserUtils.ActivePage = "dashboard"; } } |
