Skip to content

Commit dfd58a0

Browse files
authored
Merge pull request #9 from lara-zeus/filter-array
clean up the accordions
2 parents 154402f + 696222e commit dfd58a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/Accordions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getActiveAccordion(): int
4343

4444
public function accordions(array | Closure $accordions): static
4545
{
46-
$this->childComponents($accordions);
46+
$this->childComponents(array_filter($accordions));
4747

4848
return $this;
4949
}

0 commit comments

Comments
 (0)