Skip to content

Commit

Permalink
Fix issue when preprocessing dictionary config
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Nov 18, 2024
1 parent 15128bc commit 02bd985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fieldtypes/DictionaryFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function preProcess($data): array
}

if (is_string($data)) {
return ['type' => $data];
$data = ['type' => $data];
}

$dictionary = Dictionary::find($data['type']);
Expand Down

0 comments on commit 02bd985

Please sign in to comment.