Skip to content

Commit e10fc69

Browse files
Check for empty state
1 parent 7c6f90b commit e10fc69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SelectTree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ public function getCreateOptionAction(): ?Action
473473

474474
$state = $component->getMultiple()
475475
? [
476-
...$component->getState(),
476+
...$component->getState() ?? [],
477477
$createdOptionKey,
478478
]
479479
: $createdOptionKey;

0 commit comments

Comments
 (0)