Skip to content

Commit

Permalink
Fix bad method call
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski authored Feb 25, 2021
1 parent 29ec359 commit 9800f63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HasConditionalContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ private function flattenDependencies(NovaRequest $request, array $fields)

if ($field instanceof JsonWrapper) {

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

}

Expand Down Expand Up @@ -331,7 +331,7 @@ private function findAllContainers($fields): Collection

if ($field instanceof JsonWrapper) {

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

}

Expand Down

0 comments on commit 9800f63

Please sign in to comment.