Fix case where {tags} returns an error (#1549)

This commit is contained in:
toasted-nutbread 2021-03-23 20:43:38 -04:00 committed by GitHub
parent 7a8d359aa2
commit 0e1845c7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}