Skip to content

Commit 7d80829

Browse files
committed
fix issue with panels
1 parent a6c74d2 commit 7d80829

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/HasConditionalContainer.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ trait HasConditionalContainer
2626
* Get the panels that are available for the given detail request.
2727
*
2828
* @param NovaRequest $request
29+
*
2930
* @return array
3031
*/
3132
public function availablePanelsForDetail($request)
@@ -40,6 +41,7 @@ public function availablePanelsForDetail($request)
4041
* Get the panels that are available for the given create request.
4142
*
4243
* @param NovaRequest $request
44+
*
4345
* @return array
4446
*/
4547
public function availablePanelsForCreate($request)
@@ -54,6 +56,7 @@ public function availablePanelsForCreate($request)
5456
* Get the panels that are available for the given update request.
5557
*
5658
* @param NovaRequest $request
59+
*
5760
* @return array
5861
*/
5962
public function availablePanelsForUpdate($request)
@@ -201,7 +204,11 @@ private function flattenDependencies(NovaRequest $request, array $fields)
201204

202205
return $fields->flatMap(function ($field) use ($fields, $fakeRequest, $controller) {
203206

204-
$this->parseThirdPartyPackageFieldValue($field, $fakeRequest);
207+
if ($field instanceof Field) {
208+
209+
$this->parseThirdPartyPackageFieldValue($field, $fakeRequest);
210+
211+
}
205212

206213
if ($field instanceof ConditionalContainer) {
207214

0 commit comments

Comments
 (0)