mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 20:18:23 -05:00
less errors in js tests suite
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user