Fix missing variable
This commit is contained in:
parent
7bccbcd180
commit
206531a667
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue