From 12233a23c963afddb8d14ce854cda037108ec6d8 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Wed, 21 Feb 2018 13:29:11 +0000 Subject: [PATCH] Avoid erroring if the front object is undefined. --- services/web/app/views/project/list/front-chat.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/project/list/front-chat.pug b/services/web/app/views/project/list/front-chat.pug index 0f5c5fa861..765bddc42a 100644 --- a/services/web/app/views/project/list/front-chat.pug +++ b/services/web/app/views/project/list/front-chat.pug @@ -1,4 +1,4 @@ -- if (settings.overleaf && settings.front.chat_room_id != null) +- if (settings.overleaf && settings.front && settings.front.chat_room_id != null) script. window.FCSP = '#{settings.front.chat_room_id}'; script(src="https://chat-assets.frontapp.com/v1/chat.bundle.js") \ No newline at end of file