From 7cc61b7c51e1be701446bf60259f1b2dd34917a9 Mon Sep 17 00:00:00 2001 From: johnkrovitch Date: Mon, 4 Nov 2024 09:47:11 +0100 Subject: [PATCH] fix: add a check for missing grid in the index resources template --- templates/resources/index.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/resources/index.html.twig b/templates/resources/index.html.twig index 06ab716b0..044823aa2 100644 --- a/templates/resources/index.html.twig +++ b/templates/resources/index.html.twig @@ -13,7 +13,7 @@ {% endblock %} {% block collection_actions %} - {% if grid.actions|length == 1 %} + {% if grid is defined and grid.actions|length == 1 %}
{% include '@LAGAdmin/resources/index/_collection_operations.html.twig' %}
@@ -23,7 +23,7 @@ {% endblock %} {% block grid %} - {% if grid %} + {% if grid is defined and grid is not empty %}
{{ component('lag_admin:grid', { data: data,