« get me outta code hell

content: generateArtTagInfoPage: fix no-annotation related tags - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-09-15 22:35:41 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-09-15 22:35:41 -0300
commit7ebfbb210c25de522868ecb9dafeb484bd7d9be0 (patch)
tree87900ddfa986f4007bcddb0d6baab25a486fb6e4 /src
parentc191171847198a911c63a8342746ff884dd3ed4a (diff)
content: generateArtTagInfoPage: fix no-annotation related tags
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateArtTagInfoPage.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content/dependencies/generateArtTagInfoPage.js b/src/content/dependencies/generateArtTagInfoPage.js
index 9df51b77..7a17ee11 100644
--- a/src/content/dependencies/generateArtTagInfoPage.js
+++ b/src/content/dependencies/generateArtTagInfoPage.js
@@ -182,12 +182,12 @@ export default {
                       artTagLink: relations.relatedArtTagLinks,
                       annotation: data.relatedArtTagAnnotations,
                     }).map(({artTagLink, annotation}) =>
-                        (html.isBlank(annotation)
-                          ? artTagLink
-                          : language.$(capsule, 'tagWithAnnotation', {
+                        (annotation
+                          ? language.$(capsule, 'tagWithAnnotation', {
                               tag: artTagLink,
                               annotation,
-                            })))),
+                            })
+                          : artTagLink))),
               }))),
 
           html.tag('blockquote',