[2.0.0-beta1] drawer component: simpler attributes management

Created on 17 July 2024, about 2 months ago

Problem/Motivation

Thanks to 📌 Prevent TypeError when using create_attribute Twig function Fixed , this

      {% set item_attributes = item.attributes|default({}) %}
      {% set item_attributes = item_attributes.storage() is defined ? item_attributes : create_attribute(item_attributes) %}

Proposed resolution

Try to replace it with:

 {% set item_attributes = create_attribute(item.attributes|default({}) %}
📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024