Skip to content

Commit

Permalink
fix the field update
Browse files Browse the repository at this point in the history
  • Loading branch information
blumewas committed Jun 19, 2024
1 parent 8b538f3 commit ce12886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nova/Fields/TranslatableField.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TranslatableField extends Field

public function __construct($name, ?string $key = null)
{
parent::__construct($name, 'translations', function ($value, $resource, $attribute) {
parent::__construct($name, $key, function ($value, $resource, $attribute) {
// Create a value map locale => translation
$value = collect($value)->mapWithKeys(function ($item) {
return [$item['locale'] => $item['text']];
Expand Down

0 comments on commit ce12886

Please sign in to comment.