From d552142db760c1a3bd7b17453d4e8065af569a74 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 10 Jun 2014 16:45:54 +0100 Subject: [PATCH] loadTemplate returns null when defaultTemplate can't come up with anything. --- src/mkws-team.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mkws-team.js b/src/mkws-team.js index 02dc5ac..f4e0c88 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -413,6 +413,7 @@ function team($, teamName) { source = mkws.defaultTemplate(name); } + if (!source) return null; template = Handlebars.compile(source); log("compiled template '" + name + "'"); m_template[name] = template; -- 1.7.10.4