summaryrefslogtreecommitdiff
path: root/ext/js/templates
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-23 20:43:38 -0400
committerGitHub <noreply@github.com>2021-03-23 20:43:38 -0400
commit0e1845c7edd8ae9c9a11d151d2c3a970ee9fc241 (patch)
tree910f5c38ea2d41a73c4255058edeed9ee46fcd88 /ext/js/templates
parent7a8d359aa2a659a790b3c7d0df1f76d5133a3ec0 (diff)
Fix case where {tags} returns an error (#1549)
Diffstat (limited to 'ext/js/templates')
-rw-r--r--ext/js/templates/template-renderer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/js/templates/template-renderer.js b/ext/js/templates/template-renderer.js
index ae39e478..2db9e177 100644
--- a/ext/js/templates/template-renderer.js
+++ b/ext/js/templates/template-renderer.js
@@ -250,6 +250,7 @@ class TemplateRenderer {
const tags = new Set();
for (const tagSource of tagSources) {
+ if (!Array.isArray(tagSource)) { continue; }
for (const tag of tagSource) {
tags.add(tag.name);
}