Ignore empty morph data

This commit is contained in:
Leonard Smith 2021-05-06 13:08:04 -05:00
parent 8023fb74b0
commit ae912f213f
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}