From 10d6a9b7f2203316ee4b5b8e4bafe0c922266a18 Mon Sep 17 00:00:00 2001 From: nate stemen Date: Wed, 19 Feb 2020 08:08:21 -0500 Subject: [PATCH] Merge pull request #2589 from overleaf/ns-hide-v1-projects ensure v1 projects folder not shown on dashboard if empty GitOrigin-RevId: d8c0f1352fc2e8d891eb76f7d1ef00126a4f581e --- services/web/app/src/Features/Project/ProjectController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/Features/Project/ProjectController.js b/services/web/app/src/Features/Project/ProjectController.js index 772bb9234d..7aeb1ea376 100644 --- a/services/web/app/src/Features/Project/ProjectController.js +++ b/services/web/app/src/Features/Project/ProjectController.js @@ -556,7 +556,9 @@ const ProjectController = { user, userAffiliations, hasSubscription: results.hasSubscription, - isShowingV1Projects: results.v1Projects != null, + isShowingV1Projects: + results.v1Projects != null && + results.v1Projects.projects.length > 0, warnings, zipFileSizeLimit: Settings.maxUploadSize }