diff --git a/src/HasConditionalContainer.php b/src/HasConditionalContainer.php index 52b906a..6776392 100644 --- a/src/HasConditionalContainer.php +++ b/src/HasConditionalContainer.php @@ -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()); } @@ -331,7 +331,7 @@ private function findAllContainers($fields): Collection if ($field instanceof JsonWrapper) { - return $this->findAllContainers($field->fields); + return $this->findAllContainers($field->fields->toArray()); }