Skip to content

Commit

Permalink
Merge pull request #318 from lara-zeus/fix-preset
Browse files Browse the repository at this point in the history
fix if the field is from a preset
  • Loading branch information
atmonshi authored Jul 17, 2024
2 parents 84cd3df + 99e02b2 commit adb106d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/FieldsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function appendFilamentComponentsOptions($component, $zeusField, bool $ha
return null;
}

if ($zeusField->section->form->extensions !== 'LaraZeus\\BoltPro\\Extensions\\Grades') {
if (! $zeusField instanceof FieldPreset && $zeusField->section->form->extensions !== 'LaraZeus\\BoltPro\\Extensions\\Grades') {

Check failure on line 93 in src/Fields/FieldsContract.php

View workflow job for this annotation

GitHub Actions / phpstan

Class LaraZeus\BoltPro\Models\Field not found.

Check failure on line 93 in src/Fields/FieldsContract.php

View workflow job for this annotation

GitHub Actions / phpstan

Class LaraZeus\BoltPro\Models\Field not found.
return null;
}

Expand Down

0 comments on commit adb106d

Please sign in to comment.