title: Shopware 6 | Cloning CmsElement and get null as data
body: <p>I try to clone the content element <code>image-slider</code> or <code>image-gallery</code> (the error will come at both) to extend them. First I register a new CmsElement like the original <strong>only</strong> changes the name from <code>image-slider</code> to <code>image-slider-example</code></p>
  <pre class="lang-js prettyprint-override"><code>import './component';
  import './config';
  import './preview';
  
  Shopware.Service('cmsService').registerCmsElement({
      name: 'image-slider-example',
      label: 'sw-cms.elements.imageSlider.label',
      component: 'sw-cms-el-image-slider',
      configComponent: 'sw-cms-el-config-image-slider',
      previewComponent: 'sw-cms-el-preview-image-slider',
      defaultConfig: {
          sliderItems: {
              source: 'static',
              value: [],
              required: true,
              entity: {
                  name: 'media'
              }
          },
          displayMode: {
              source: 'static',
              value: 'standard'
          },
          minHeight: {
              source: 'static',
              value: '300px'
          },
          verticalAlign: {
              source: 'static',
              value: null
          }
      },
      enrich: function enrich(elem, data) {
          if (Object.keys(data).length &lt; 1) {
              return;
          }
  
          Object.keys(elem.config).forEach((configKey) =&gt; {
              const entity = elem.config[configKey].entity;
  
              if (!entity) {
                  return;
              }
  
              const entityKey = entity.name;
              if (!data[`entity-${entityKey}`]) {
                  return;
              }
  
              elem.data[configKey] = [];
              elem.config[configKey].value.forEach((sliderItem) =&gt; {
                  elem.data[configKey].push({
                      newTab: sliderItem.newTab,
                      url: sliderItem.url,
                      media: data[`entity-${entityKey}`].get(sliderItem.mediaId)
                  });
              });
          });
      }
  });
  
  </code></pre>
  <p>Now It shows me the new element in the Shopping Experience, where I can use it.</p>
  <p>After that I create for the storefront the <code>cms-element-image-slider-example.html.twig</code> file, which will be loaded by Shopware.</p>
  <pre><code>{% sw_extends '@Storefront/storefront/element/cms-element-image-slider.html.twig' %}
  
  {% block element_image_slider_alignment %}
      &lt;pre&gt;
          {{ dump(element) }}
      &lt;/pre&gt;
      {{ parent() }}
  {% endblock %}
  </code></pre>
  <p>Now I extend the original storefront element from which I was cloning and add a <code>dump</code> to see all data. But there I have the issue, that the <code>element.data</code> are <code>null</code> but there should be all images stored.</p>