Fix missing variable

This commit is contained in:
Ramon Wenger 2022-05-23 16:43:40 +02:00
parent 7bccbcd180
commit 206531a667
3 changed files with 6 additions and 4 deletions

View File

@ -138,7 +138,7 @@
if (!(contentType in instruments)) { if (!(contentType in instruments)) {
return ''; return '';
} }
return instrumentCategory(); return instrumentCategory(this.instrument);
}, },
canEditContentBlock() { canEditContentBlock() {
return this.contentBlock.mine && !this.contentBlock.indent; return this.contentBlock.mine && !this.contentBlock.indent;

View File

@ -33,7 +33,9 @@
'instrument-entry__interdisciplinary': this.instrument.type.category === INTERDISCIPLINARY, 'instrument-entry__interdisciplinary': this.instrument.type.category === INTERDISCIPLINARY,
}; };
}, },
categoryName: instrumentCategory, categoryName() {
return instrumentCategory(this.instrument);
},
}, },
}; };
</script> </script>

View File

@ -11,11 +11,11 @@ const instrumentType = ({type: {category}}) => {
} }
}; };
const instrumentCategory = () => { const instrumentCategory = (instrument) => {
if (flavor.appFlavor === 'my-kv') { if (flavor.appFlavor === 'my-kv') {
return flavor.textInstruments; return flavor.textInstruments;
} else { } else {
return instrumentType(this.instrument); return instrumentType(instrument);
} }
}; };