less errors in js tests suite
This commit is contained in:
parent
85f1cf7d1b
commit
9f14c197f2
|
@ -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 New Issue