« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/linkThing.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js
index 7784afe7..166a857d 100644
--- a/src/content/dependencies/linkThing.js
+++ b/src/content/dependencies/linkThing.js
@@ -77,14 +77,15 @@ export default {
     const linkAttributes = slots.attributes;
     const wrapperAttributes = html.attributes();
 
+    const name =
+      relations.name.slot('preferShortName', slots.preferShortName);
+
     const showShortName =
       slots.preferShortName &&
      !data.nameText &&
       data.nameShort &&
       data.nameShort !== data.name;
 
-    const name = relations.name;
-
     const showWikiTooltip =
       (slots.tooltipStyle === 'auto'
         ? showShortName