From 065a6cf76bd73eeed2e8a78f07f79b97942f60c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Thu, 5 Oct 2017 23:15:09 +0200 Subject: [PATCH] Fix exception for mod with missing type while searching --- public/js/tpl/mods/search/list_item.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/js/tpl/mods/search/list_item.html b/public/js/tpl/mods/search/list_item.html index 5cee6ce..22c247f 100644 --- a/public/js/tpl/mods/search/list_item.html +++ b/public/js/tpl/mods/search/list_item.html @@ -1,7 +1,13 @@

<%-name%> - <%-type%> + <% if (typeof(type) != "undefined" && type) { %> + <%-type%> + <% } else { %> + Unknown + <% } %> +

<%-title%>