mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
less errors in js tests suite
This commit is contained in:
parent
85f1cf7d1b
commit
9f14c197f2
1 changed files with 1 additions and 2 deletions
|
@ -133,8 +133,7 @@ export default Ember.Component.extend({
|
|||
this._resizeInterval = setInterval(() => {
|
||||
Ember.run(() => {
|
||||
const $panelBodyContents = this.$('.panel-body-contents');
|
||||
|
||||
if ($panelBodyContents.length) {
|
||||
if ($panelBodyContents && $panelBodyContents.length) {
|
||||
const contentHeight = parseInt($panelBodyContents.height());
|
||||
if (contentHeight !== this._lastHeight) { this.performLayout(); }
|
||||
this._lastHeight = contentHeight;
|
||||
|
|
Loading…
Reference in a new issue