From ad11a1788440960e51d348631626d1a0df4d50a7 Mon Sep 17 00:00:00 2001 From: Sergei Maertens Date: Tue, 31 Oct 2023 11:40:28 +0100 Subject: [PATCH] :lipstick: Only render container div if there are rows --- src/formio/templates/editGrid.ejs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/formio/templates/editGrid.ejs b/src/formio/templates/editGrid.ejs index ac65fb0fd..040e04309 100644 --- a/src/formio/templates/editGrid.ejs +++ b/src/formio/templates/editGrid.ejs @@ -1,4 +1,5 @@
+ {% if(ctx.rows.length) { %}
{% ctx.rows.forEach(function(row, rowIndex) { %}
@@ -39,6 +40,7 @@ {% }) %}
+ {% } %} {% if (!ctx.readOnly && ctx.hasAddButton) { %}