aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DashboardView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-09-21 15:50:22 -0400
committerbobzel <zzzman@gmail.com>2022-09-21 15:50:22 -0400
commit4ae8a40f4c80025ded7696a03d9c3348b55bcbc5 (patch)
tree563c504a9dd373d4a9392b68ddf7fa7d87ea8aa8 /src/client/views/DashboardView.tsx
parent27d5a777eea8505319b4e6b41efbd7d2d5e75b3a (diff)
parentdc47762c9da3c867c5d76e23e32293fd0abeb5f4 (diff)
Merge branch 'master' of https://github.com/brown-dash/Dash-Web
Diffstat (limited to 'src/client/views/DashboardView.tsx')
-rw-r--r--src/client/views/DashboardView.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx
index 68d975a17..911b53945 100644
--- a/src/client/views/DashboardView.tsx
+++ b/src/client/views/DashboardView.tsx
@@ -83,8 +83,10 @@ export class DashboardView extends React.Component {
@undoBatch
createNewDashboard = async (name: string, background?: string) => {
+ setTimeout(() => {
+ this.abortCreateNewDashboard();
+ }, 100);
DashboardView.createNewDashboard(undefined, name, background);
- this.abortCreateNewDashboard();
};
@computed