From c2e294beffe71147cdd2afcb27610d9b3b0ed57e Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Fri, 18 Aug 2017 09:35:02 -0500 Subject: [PATCH] Fix js error when no linting issues exist --- edit/lint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/lint.js b/edit/lint.js index e8a17931..1eea5990 100644 --- a/edit/lint.js +++ b/edit/lint.js @@ -151,7 +151,7 @@ function renderLintReport(someBlockChanged) { function resizeLintReport() { const magicBuffer = 20; // subtracted value to prevent scrollbar const content = $('#lint table'); - if (content.children.length) { + if (content) { const bounds = content.getBoundingClientRect(); const newMaxHeight = bounds.bottom <= window.innerHeight ? '' : // subtract out a bit of padding or the vertical scrollbar extends beyond the viewport