« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data/checks.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index c0eba0ff..fe4528e8 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -37,7 +37,9 @@ export function reportDuplicateDirectories(wikiData, {
 
     const directoryPlaces = Object.create(null);
     const duplicateDirectories = new Set();
+
     const thingData = wikiData[findSpec.bindTo];
+    if (!thingData) continue;
 
     for (const thing of thingData) {
       if (findSpec.include && !findSpec.include(thing)) {