diff --git a/src/BootstrapAdminUi/templates/shared/crud/index/content/grid/data_table.html.twig b/src/BootstrapAdminUi/templates/shared/crud/index/content/grid/data_table.html.twig index cc7657f7..b4b93c14 100644 --- a/src/BootstrapAdminUi/templates/shared/crud/index/content/grid/data_table.html.twig +++ b/src/BootstrapAdminUi/templates/shared/crud/index/content/grid/data_table.html.twig @@ -1,7 +1,7 @@ {% import '@SyliusBootstrapAdminUi/shared/helper/table.html.twig' as table %} {% import '@SyliusBootstrapAdminUi/shared/helper/pagination.html.twig' as pagination %} -{% set resources = hookable_metadata.context.resources %} +{% set resources = resources|default(hookable_metadata.context.resources|default(null)) %} {% set data = resources.data|default([]) %} {% set definition = resources.definition|default(null) %} diff --git a/src/BootstrapAdminUi/templates/shared/helper/table.html.twig b/src/BootstrapAdminUi/templates/shared/helper/table.html.twig index 38683055..8bfbf15c 100644 --- a/src/BootstrapAdminUi/templates/shared/helper/table.html.twig +++ b/src/BootstrapAdminUi/templates/shared/helper/table.html.twig @@ -24,8 +24,8 @@ {% macro row(grid, definition, row) %} {% import '@SyliusBootstrapAdminUi/shared/helper/dropdown.html.twig' as dropdown %} -