From 2524dea0c5e2834eb6fb28defef1671172401b1b Mon Sep 17 00:00:00 2001 From: Nikita Golovin Date: Wed, 12 Oct 2022 02:11:30 +0400 Subject: [PATCH] Fix opening links to Content Item, Model. --- src/containers/MainArea/MainArea.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/containers/MainArea/MainArea.js b/src/containers/MainArea/MainArea.js index 2589f470..4afca4e8 100644 --- a/src/containers/MainArea/MainArea.js +++ b/src/containers/MainArea/MainArea.js @@ -30,7 +30,7 @@ function MainArea(props) { const {models, nav} = props; const {closeNotification} = props.navActions; - const noSites = nav.initEnded && !models.sites.length; + const noSites = nav.initEnded && !models.currentSite; return (
@@ -39,18 +39,18 @@ function MainArea(props) {
{noSites ? - <> - - } /> - } /> - } /> - -
- - Add new site to start working -
Find "Create new site" button in the sidebar
-
- + + } /> + } /> + } /> + + + Add new site to start working +
Find "Create new site" button in the sidebar
+
+ } /> + : } />