Преглед изворни кода

Avoid erroring if the front object is undefined.

Paulo Reis пре 8 година
родитељ
комит
12233a23c9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/web/app/views/project/list/front-chat.pug

+ 1 - 1
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")