diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index f9924046f..1558f71f7 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -686,6 +686,8 @@ WellGrid.prototype = { let columnsNatural; let i; let children = this._getItemChildren(); + if (children.length == 0) + return [0, WELL_DEFAULT_COLUMNS, 0, 0]; let nColumns; if (children.length < WELL_DEFAULT_COLUMNS) nColumns = children.length;