From d517d1e294f4123bd1b653d2fe3f747941905be8 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sat, 29 Aug 2020 20:15:08 -0400 Subject: from last --- src/client/views/MainView.tsx | 9 ++++----- .../collections/collectionFreeForm/CollectionFreeFormView.tsx | 5 ----- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 83d9a3498..07ba7e805 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -241,11 +241,10 @@ export class MainView extends React.Component { ); } const activeDash = PromiseValue(this.userDoc.activeDashboard); - if (activeDash) { - activeDash.then(dash => dash instanceof Doc && CurrentUserUtils.openDashboard(this.userDoc, dash)); - } else { - CurrentUserUtils.createNewDashboard(this.userDoc); - } + activeDash.then(dash => { + if (dash instanceof Doc) CurrentUserUtils.openDashboard(this.userDoc, dash); + else CurrentUserUtils.createNewDashboard(this.userDoc); + }); } } diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 04c30c4f2..30a71398b 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -904,10 +904,6 @@ export class CollectionFreeFormView extends CollectionSubView { if (afterFocus?.()) { -- cgit v1.2.3-70-g09d2