« get me outta code hell

checks: filterReferenceErrors: check artworkData - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-06-14 18:50:17 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-06-14 18:50:17 -0300
commit61954645af7dc670bf3b22abe47824c383cb3e68 (patch)
treec76b3068fc81487116da33dd450ae78bbf399379 /src/data
parent21cbddd3b12d56a986e81e7bcc30769c5fa59d36 (diff)
checks: filterReferenceErrors: check artworkData
Maybe jank, since it doesn't dig into objects nicely(?) the way
that reportContentTextErrors does, but...
Diffstat (limited to 'src/data')
-rw-r--r--src/data/checks.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index afd2a04c..3fcb6d3b 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -192,6 +192,10 @@ export function filterReferenceErrors(wikiData, {
       directDescendantArtTags: 'artTag',
     }],
 
+    ['artworkData', {
+      referencedArtworks: '_artwork',
+    }],
+
     ['flashData', {
       commentary: '_content',
       creditingSources: '_content',