Undefined index: weight when used with Layout Builder
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3276658. -->
Reported by: [yepa](https://www.drupal.org/user/1851880)
Related to !1
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>On Drupal 9, when user hash is used with Layout Builder, an error occurred :<br>
<code>Notice: Undefined index: weight in modules/contrib/user_hash/user_hash.module on line 92</code></p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Drupal 9</li>
<li>Layout builder</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>This error could be similar to <a href="https://www.drupal.org/project/entity_print/issues/3199761">Undefined index: weight when used with Layout Builder</a></p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Review</p>
> Related issue: [Issue #3199761](https://www.drupal.org/node/3199761)
issue