<div class="ui stackable two column grid">
    <div class="column">
        {{ headers.default(header|trans, configuration.vars.icon|default('list'), configuration.vars.subheader|default(null)|trans) }}

        {% include configuration.vars.templates.breadcrumb|default('@SyliusAdmin/Crud/Index/_breadcrumb.html.twig') %}
    </div>
    <div class="middle aligned column">
        <div class="ui right floated buttons">
            {% if definition.actionGroups.main is defined and definition.getActions('main')|length > 0 %}
                {% for action in definition.getActions('main') %}
                    {{ sylius_grid_render_action(resources, action, null) }}
                {% endfor %}
            {% endif %}
        </div>
    </div>
</div>

<div class="ui stackable two column grid">
    <div class="column">
        {{ headers.default(header|trans, configuration.vars.icon|default('list'), configuration.vars.subheader|default(null)|trans) }}

        {% include configuration.vars.templates.breadcrumb|default('@SyliusAdmin/Crud/Index/_breadcrumb.html.twig') %}
    </div>
    <div class="middle aligned column">
        <div class="ui right floated buttons">
            {% if definition.actionGroups.main is defined and definition.getActions('main')|length > 0 %}
                {% for action in definition.getActions('main') %}
                    {% if action.enabled %}
                        {{ sylius_grid_render_action(resources, action, null) }}
                    {% endif %}
                {% endfor %}
            {% endif %}
        </div>
    </div>
</div>

Add missing check if main action is enabled
[Grid] Add missing check if main action is enabled
