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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

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