Skip to content

Commit

Permalink
fix(field): Fix default field setting merge order (Fixes #127) (#132)
Browse files Browse the repository at this point in the history
Co-authored-by: Sander de Vries <[email protected]>
  • Loading branch information
sanderdv and Sander de Vries authored Oct 10, 2022
1 parent b19eb3a commit 38dc07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(Application $app)
: $this->fields;

if ($this->defaults->has('field_group')) {
$this->fields = array_merge($this->fields ?? [], $this->defaults->get('field_group'));
$this->fields = array_merge($this->defaults->get('field_group'), $this->fields ?? []);
}
}

Expand Down

0 comments on commit 38dc07b

Please sign in to comment.