diff --git a/material/partials/tabs-item.html b/material/partials/tabs-item.html index 686b5a59b..cd97286ca 100644 --- a/material/partials/tabs-item.html +++ b/material/partials/tabs-item.html @@ -12,7 +12,7 @@ {% elif nav_item.children and nav_item.children | length > 0 %} {% set title = title | default(nav_item.title) %} - {% if (nav_item.children | first).children | length > 0 %} + {% if (nav_item.children | first).children %} {% set nav_item = nav_item.children | first %} {% include "partials/tabs-item.html" %} {% else %} diff --git a/src/partials/tabs-item.html b/src/partials/tabs-item.html index 1f6c5d39b..56298f270 100644 --- a/src/partials/tabs-item.html +++ b/src/partials/tabs-item.html @@ -41,7 +41,7 @@ {% set title = title | default(nav_item.title) %} - {% if (nav_item.children | first).children | length > 0 %} + {% if (nav_item.children | first).children %} {% set nav_item = nav_item.children | first %} {% include "partials/tabs-item.html" %}