Skip to content

Commit

Permalink
fix: twig schema validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Morse committed Dec 5, 2019
1 parent 43cd817 commit ce01d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/bolt-menu/src/_menu-item.twig
@@ -1,12 +1,12 @@
{% set schema = bolt.data.components["@bolt-components-menu"].schema.properties.items %}
{% set schema = bolt.data.components["@bolt-components-menu"].schema %}

{% if enable_json_schema_validation %}
{{ validate_data_schema(schema, _self) | raw }}
{% endif %}

{# Variables #}
{% set base_class = "c-bolt-menu-item" %}
{% set this = init(schema) %}
{% set this = init(schema.properties.items.items) %}
{% set item_attributes = create_attribute(attributes|merge({
"role": "menuitem",
})) %}
Expand Down

0 comments on commit ce01d58

Please sign in to comment.