Skip to content

Commit

Permalink
fix: add a check for missing grid in the index resources template
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkrovitch committed Nov 4, 2024
1 parent 56c0aab commit 7cc61b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/resources/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{% endblock %}

{% block collection_actions %}
{% if grid.actions|length == 1 %}
{% if grid is defined and grid.actions|length == 1 %}
<div class="col-3">
{% include '@LAGAdmin/resources/index/_collection_operations.html.twig' %}
</div>
Expand All @@ -23,7 +23,7 @@
{% endblock %}

{% block grid %}
{% if grid %}
{% if grid is defined and grid is not empty %}
<div class="admin-grid-container">
{{ component('lag_admin:grid', {
data: data,
Expand Down

0 comments on commit 7cc61b7

Please sign in to comment.