Fix js error when no linting issues exist
This commit is contained in:
parent
12a09976f2
commit
c2e294beff
|
@ -151,7 +151,7 @@ function renderLintReport(someBlockChanged) {
|
||||||
function resizeLintReport() {
|
function resizeLintReport() {
|
||||||
const magicBuffer = 20; // subtracted value to prevent scrollbar
|
const magicBuffer = 20; // subtracted value to prevent scrollbar
|
||||||
const content = $('#lint table');
|
const content = $('#lint table');
|
||||||
if (content.children.length) {
|
if (content) {
|
||||||
const bounds = content.getBoundingClientRect();
|
const bounds = content.getBoundingClientRect();
|
||||||
const newMaxHeight = bounds.bottom <= window.innerHeight ? '' :
|
const newMaxHeight = bounds.bottom <= window.innerHeight ? '' :
|
||||||
// subtract out a bit of padding or the vertical scrollbar extends beyond the viewport
|
// subtract out a bit of padding or the vertical scrollbar extends beyond the viewport
|
||||||
|
|
Loading…
Reference in New Issue
Block a user