diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk index 045f4515e..423921960 100644 --- a/docs/_layouts/component.njk +++ b/docs/_layouts/component.njk @@ -31,7 +31,7 @@ {# Component API #} {% block afterContent %} {# Slots #} - {% if component.slots.length %} + {% if component.slots?.length %}
{{ method.name }}() |
{{ method.description | inlineMarkdown | safe }} |
- {% if method.parameters.length %}
+ {% if method.parameters?.length %}
{% for param in method.parameters %}
{{ param.name }}: {{ param.type.text | trimPipes }}{% if not loop.last %},{% endif %}
@@ -146,7 +146,7 @@
{% endif %}
{# States #}
- {% if component.states.length %}
+ {% if component.states?.length %}
|