Ignore empty morph data
This commit is contained in:
parent
8023fb74b0
commit
ae912f213f
|
@ -16,9 +16,10 @@ export default class WordsMorphologyComponent extends Component {
|
|||
|
||||
async getMorphDetail()
|
||||
{
|
||||
if (this.args.morph == 'undefined' || this.args.morph == '') {
|
||||
return;
|
||||
}
|
||||
const result = await this.store.findRecord('morph-legend', this.args.morph);
|
||||
console.log(result.description);
|
||||
this.morphLegend = result.description;
|
||||
console.log(this.morphLegend);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue