diff --git a/core/renderers/thrasos/info.js b/core/renderers/thrasos/info.js index 1c8075a27..d2e6170fa 100644 --- a/core/renderers/thrasos/info.js +++ b/core/renderers/thrasos/info.js @@ -82,6 +82,9 @@ class RenderInfo extends BaseRenderInfo { row.elements.push(new InRowSpacer( this.constants_, this.getInRowSpacing_(null, oldElems[0]))); } + if (!oldElems.length) { + continue; + } for (let e = 0; e < oldElems.length - 1; e++) { row.elements.push(oldElems[e]); const spacing = this.getInRowSpacing_(oldElems[e], oldElems[e + 1]);