From 5bb46a930a3775bb3c2a7be9534764f27b69098a Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Mon, 20 Nov 2017 15:55:00 +0000 Subject: [PATCH] Check presence of overleaf settings --- services/web/app/views/project/list/v1-item.pug | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/services/web/app/views/project/list/v1-item.pug b/services/web/app/views/project/list/v1-item.pug index 5631788aeb..3a5e86e791 100644 --- a/services/web/app/views/project/list/v1-item.pug +++ b/services/web/app/views/project/list/v1-item.pug @@ -1,10 +1,11 @@ .col-xs-8 span.v1-badge(aria-label=translate("v1_badge")) span - a.projectName( - href=settings.overleaf.host + "/{{project.id}}" - stop-propagation="click" - ) {{project.name}} + if settings.overleaf && settings.overleaf.host + a.projectName( + href=settings.overleaf.host + "/{{project.id}}" + stop-propagation="click" + ) {{project.name}} .col-xs-4 span.last-modified {{project.lastUpdated | formatDate}} \ No newline at end of file