From 073b2af3e21edccb35dad6b5bfdda2772f164abf Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 24 Oct 2016 17:27:36 -0400 Subject: fix issue with empty schemas --- themes/okadmin/templates/index.liquid | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'themes/okadmin') diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid index d2ae557..9a46455 100644 --- a/themes/okadmin/templates/index.liquid +++ b/themes/okadmin/templates/index.liquid @@ -49,15 +49,18 @@ {% endfor %} {% endfor %} {% else %} -
    - {% for data in resource.data %} - - {{data.title}} - - - {% endfor %} -
+ {% assign resourceJSON = resource.data[0] | stringify %} + {% if resourceJSON != "[]" %} +
    + {% for data in resource.data %} + + {{data.title}} + + + {% endfor %} +
+ {% endif %}