Skip to content

Commit

Permalink
Merge pull request #9 from lara-zeus/filter-array
Browse files Browse the repository at this point in the history
clean up the accordions
  • Loading branch information
atmonshi authored Jun 7, 2024
2 parents 154402f + 696222e commit dfd58a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/Accordions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getActiveAccordion(): int

public function accordions(array | Closure $accordions): static
{
$this->childComponents($accordions);
$this->childComponents(array_filter($accordions));

return $this;
}
Expand Down

0 comments on commit dfd58a0

Please sign in to comment.