FIX: prevents exception when the node doesnt exist anymore (#7408)

This commit is contained in:
Joffrey JAFFEUX
2019-04-19 18:27:23 +02:00
committed by GitHub
parent 3dae12dec1
commit 151da50e7c
@@ -2,10 +2,12 @@ export default Ember.Component.extend({
didInsertElement() {
this._super(...arguments);
Ember.run.next(null, () => {
this.$()
.find("hr")
.remove();
this.$().ellipsis();
const $this = this.$();
if ($this) {
$this.find("hr").remove();
$this.ellipsis();
}
});
}
});