We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92ec7ac + 7b330cd commit 3753e4cCopy full SHA for 3753e4c
src/Fields/Layouts.php
@@ -125,7 +125,7 @@ public function getFilledLayouts(): LayoutCollection
125
);
126
}
127
128
- $filled = $values->map(function (LayoutItem $data) use ($layouts) {
+ $filled = $values ? $values->map(function (LayoutItem $data) use ($layouts) {
129
/** @var ?Layout $layout */
130
$layout = $layouts->findByName($data->getName());
131
@@ -168,7 +168,7 @@ public function getFilledLayouts(): LayoutCollection
168
->headingAdditionalFields($fields);
169
170
return $layout->removeButton($this->getRemoveButton());
171
- })->filter();
+ })->filter() : [];
172
173
return LayoutCollection::make($filled);
174
0 commit comments