Skip to content

Commit 9800f63

Browse files
authored
Fix bad method call
1 parent 29ec359 commit 9800f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HasConditionalContainer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private function flattenDependencies(NovaRequest $request, array $fields)
264264

265265
if ($field instanceof JsonWrapper) {
266266

267-
return $this->flattenDependencies($fakeRequest, $field->fields);
267+
return $this->flattenDependencies($fakeRequest, $field->fields->toArray());
268268

269269
}
270270

@@ -331,7 +331,7 @@ private function findAllContainers($fields): Collection
331331

332332
if ($field instanceof JsonWrapper) {
333333

334-
return $this->findAllContainers($field->fields);
334+
return $this->findAllContainers($field->fields->toArray());
335335

336336
}
337337

0 commit comments

Comments
 (0)