« get me outta code hell

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:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/validators.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data/validators.js b/src/data/validators.js
index 2c99be0c..d2d1aa25 100644
--- a/src/data/validators.js
+++ b/src/data/validators.js
@@ -804,7 +804,7 @@ export function validateReference(type) {
 
     if (typePart) {
       if (Array.isArray(type)) {
-        if (!typePart.includes(type)) {
+        if (!type.includes(typePart)) {
           throw new TypeError(
             `Expected ref to begin with one of ` +
             type.map(type => `"${type}:"`).join(', ') +