diff --git a/src/NestedForm.php b/src/NestedForm.php index edfcd33..961a7fc 100644 --- a/src/NestedForm.php +++ b/src/NestedForm.php @@ -344,7 +344,7 @@ protected function fillAttributeFromRequest(NovaRequest $request, $requestAttrib { if ($model->exists) { $newRequest = NovaRequest::createFrom($request); - if (!$model->{$model->getKeyName() && $request->has($model->getKeyName())}) { + if (!$model->{$model->getKeyName()} && $request->has($model->getKeyName())) { $model->{$model->getKeyName()} = $request->get($model->getKeyName()); } $children = collect($newRequest->get($requestAttribute));