Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Sep 20, 2024
1 parent d353ae5 commit d5e3ec8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/fieldlayoutelements/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ public function __construct(?FieldInterface $field = null, $config = [])
{
// ensure we set the field last, so it has access to other properties that need to be set first
// see https://github.com/craftcms/cms/issues/15752
if (isset($config['fieldUid'])) {
$fieldUid = $config['fieldUid'];
unset($config['fieldUid']);
$fieldUid = ArrayHelper::remove($config, 'fieldUid');
if ($fieldUid) {
$config['fieldUid'] = $fieldUid;
}

Expand Down

0 comments on commit d5e3ec8

Please sign in to comment.