Skip to content

Commit

Permalink
fix: Hot
Browse files Browse the repository at this point in the history
HasManyButton.php
  • Loading branch information
lee-to committed May 28, 2024
1 parent 32223c6 commit 211255b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/RelationModelFieldController.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function hasManyForm(RelationModelFieldRequest $request): string
/** @var ModelResource $resource */
$resource = $field->getResource();
$item = $field->getResource()
->setItemID($request->get('_key'))
->setItemID($request->get('_key', ''))
->getItemOrInstance();
$update = $item->exists;
$relation = $parent?->{$field->getRelationName()}();
Expand Down

0 comments on commit 211255b

Please sign in to comment.