type:array props with enum + meta:enum throws an exception in javascript
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3581478. -->
Reported by: [isholgueras](https://www.drupal.org/user/733162)
Related to !808
>>>
<h3 id="overview">Overview</h3>
<p>This issue is a follow-up for <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3546869" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3546869</a></span>.</p>
<p>If a SDC with <code>type:array</code> has <code>meta:enum</code>, an error is thrown in javascript.<br>
<img src="https://www.drupal.org/files/issues/2026-03-25/image.png" alt=""></p>
<p>Maybe it's related with <code>PropShape.php:139</code> and <code>unset($normalized_prop_schema['meta:enum']);</code></p>
<p>Here is the component that can be used to make it fail:<br>
<code>select-fields.component.yml</code></p>
<pre>$schema: https://git.drupalcode.org/project/drupal/-/raw/HEAD/core/assets/schemas/v1/metadata.schema.json<br>name: Select fields<br>description: A component with a single-select and a multi-select field.<br>props:<br> type: object<br> properties:<br> size:<br> type: string<br> title: Size<br> description: Pick one size.<br> enum:<br> - small<br> - medium<br> - large<br> meta:enum:<br> small: Small<br> medium: Medium<br> large: Large<br> examples:<br> - medium<br> colors:<br> type: array<br> title: Colors<br> description: Pick one or more colors.<br> items:<br> type: string<br> enum:<br> - red<br> - green<br> - blue<br> - yellow<br> meta:enum:<br> red: Red<br> green: Green<br> blue: Blue<br> yellow: Yellow<br> examples:<br> - [red, blue]</pre><p><code>select-fields.twig</code></p>
<pre><div class="select-fields"><br> {% if size is not empty %}<br> <p class="select-fields__size">Size: {{ size }}</p><br> {% endif %}<br> {% if colors is not empty %}<br> <ul class="select-fields__colors"><br> {% for color in colors %}<br> <li class="select-fields__color">{{ color }}</li><br> {% endfor %}<br> </ul><br> {% endif %}<br></div></pre>
> Related issue: [Issue #3546869](https://www.drupal.org/node/3546869)
> Related issue: [Issue #3581581](https://www.drupal.org/node/3581581)
issue