mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 08:45:05 +00:00
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…
x
Reference in New Issue
Block a user