From ae912f213f24a360011919b0f4a517da6baf3414 Mon Sep 17 00:00:00 2001 From: Leonard Smith Date: Thu, 6 May 2021 13:08:04 -0500 Subject: [PATCH] Ignore empty morph data --- app/components/words/morphology.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/words/morphology.js b/app/components/words/morphology.js index a68913d..86425ce 100644 --- a/app/components/words/morphology.js +++ b/app/components/words/morphology.js @@ -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); } }