From 0e1845c7edd8ae9c9a11d151d2c3a970ee9fc241 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 23 Mar 2021 20:43:38 -0400 Subject: Fix case where {tags} returns an error (#1549) --- ext/js/templates/template-renderer.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/js') 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); } -- cgit v1.2.3