FIX: prevents exception when the node doesnt exist anymore (#7408)
This commit is contained in:
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();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue