Fix missing variable
This commit is contained in:
parent
7bccbcd180
commit
206531a667
|
|
@ -138,7 +138,7 @@
|
|||
if (!(contentType in instruments)) {
|
||||
return '';
|
||||
}
|
||||
return instrumentCategory();
|
||||
return instrumentCategory(this.instrument);
|
||||
},
|
||||
canEditContentBlock() {
|
||||
return this.contentBlock.mine && !this.contentBlock.indent;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@
|
|||
'instrument-entry__interdisciplinary': this.instrument.type.category === INTERDISCIPLINARY,
|
||||
};
|
||||
},
|
||||
categoryName: instrumentCategory,
|
||||
categoryName() {
|
||||
return instrumentCategory(this.instrument);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ const instrumentType = ({type: {category}}) => {
|
|||
}
|
||||
};
|
||||
|
||||
const instrumentCategory = () => {
|
||||
const instrumentCategory = (instrument) => {
|
||||
if (flavor.appFlavor === 'my-kv') {
|
||||
return flavor.textInstruments;
|
||||
} else {
|
||||
return instrumentType(this.instrument);
|
||||
return instrumentType(instrument);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue