Skip to content

Commit 0cd11eb

Browse files
committed
Pass actual value from model instead of using the collected value
1 parent 2627613 commit 0cd11eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/NovaInlineRelationship.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,8 @@ protected function updateFieldValue($resource, $attribute, Collection $propertie
470470
}
471471

472472
$this->value = $this->value->map(function ($items) use ($properties) {
473-
return collect($items)->map(function ($value, $key) use ($properties) {
474-
return $properties->has($key) ? $this->setMetaFromClass($properties->get($key), $key, $value) : null;
473+
return collect($items)->map(function ($value, $key) use ($properties, $items) {
474+
return $properties->has($key) ? $this->setMetaFromClass($properties->get($key), $key, $items->{$key}) : null;
475475
})->filter();
476476
});
477477
}

0 commit comments

Comments
 (0)