« get me outta code hell

find: findMixed: process byDirectory correctly - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-06-15 13:27:57 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-06-15 13:27:57 -0300
commit99d7e591bb49ef5a6fd82c7e65886bc33e13ef72 (patch)
tree0121bf0b1f93fa4e0b51f2407b2038816f4a8e62
parent83b1a43cfa6db914c90b2b060253aeadfbf0ed80 (diff)
find: findMixed: process byDirectory correctly
-rw-r--r--src/find.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/find.js b/src/find.js
index d5ef400d..8f2170d4 100644
--- a/src/find.js
+++ b/src/find.js
@@ -391,7 +391,13 @@ function findMixedHelper(config) {
           });
         }
 
-        return byDirectory[referenceType][directory];
+        const match = byDirectory[referenceType][directory];
+
+        if (match) {
+          return match.thing;
+        } else {
+          return null;
+        }
       },
 
       matchByName: