From f600999c5f9da07c0967649e3616a37c0d8fde1d Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Fri, 8 Sep 2017 09:46:58 +0200 Subject: [PATCH] Guarded against error when hiding feature description portion of card --- rpg-docs/client/views/character/features/features.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpg-docs/client/views/character/features/features.js b/rpg-docs/client/views/character/features/features.js index 92a5eb06..ad08dec6 100644 --- a/rpg-docs/client/views/character/features/features.js +++ b/rpg-docs/client/views/character/features/features.js @@ -57,7 +57,7 @@ Template.features.helpers({ return removeDuplicateProficiencies(profs); }, hasCharacters: function(string){ - return string.match(/\S/); + return string && string.match(/\S/); }, });