« 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/things/thing.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js
index 4fd6a26a..25d8c8a3 100644
--- a/src/data/things/thing.js
+++ b/src/data/things/thing.js
@@ -756,7 +756,14 @@ export default class Thing extends CacheableObject {
       }
 
       const exposeSteps = [];
-      const exposeDependencies = new Set(base.expose?.dependencies);
+      const exposeDependencies = new Set();
+
+      if (base.expose?.dependencies) {
+        for (const dependency of base.expose.dependencies) {
+          if (typeof dependency === 'string' && dependency.startsWith('#')) continue;
+          exposeDependencies.add(dependency);
+        }
+      }
 
       if (base.expose?.mapDependencies) {
         for (const dependency of Object.values(base.expose.mapDependencies)) {