Skip to content

Commit

Permalink
check if options is string
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Oct 13, 2023
1 parent 50a700c commit d4f3092
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Fields/FieldsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public function getResponse(Field $field, FieldResponse $resp): string
// @phpstan-ignore-next-line
public function appendFilamentComponentsOptions($component, $zeusField)
{
if (is_string($zeusField->options)) {
$zeusField->options = json_decode($zeusField->options, true);
}

$htmlId = $zeusField->options['htmlId'] ?? str()->random(6);

$component
Expand Down

0 comments on commit d4f3092

Please sign in to comment.