Skip to content

Commit

Permalink
When cloning, merge in all the options from the original item
Browse files Browse the repository at this point in the history
  • Loading branch information
holmesadam committed Dec 19, 2024
1 parent 2a4e327 commit d9b71c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/Schemata.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,9 @@ public static function getSectionsSchema(): array
$originalItem = end($items);
$clonedItem = array_merge($originalItem, [
'name' => $originalItem['name'] . ' new',
'options' => [
'options' => array_merge($originalItem['options'], [
'htmlId' => $originalItem['options']['htmlId'] . Str::random(2),
],
]),
]);

$items[] = $clonedItem;
Expand Down

0 comments on commit d9b71c3

Please sign in to comment.