Merge pull request #2589 from overleaf/ns-hide-v1-projects

ensure v1 projects folder not shown on dashboard if empty

GitOrigin-RevId: d8c0f1352fc2e8d891eb76f7d1ef00126a4f581e
This commit is contained in:
nate stemen 2020-02-19 08:08:21 -05:00 committed by Copybot
parent 3b70e080b1
commit 10d6a9b7f2

View file

@ -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
}