From 18fb6d3b45c05c046b16847d1f461324b914046e Mon Sep 17 00:00:00 2001 From: Ash Monsh Date: Wed, 17 Jul 2024 16:13:17 +0300 Subject: [PATCH 1/2] fix if the field is from a preset --- src/Fields/FieldsContract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fields/FieldsContract.php b/src/Fields/FieldsContract.php index 5f04604c..580cdb19 100644 --- a/src/Fields/FieldsContract.php +++ b/src/Fields/FieldsContract.php @@ -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') { return null; } From 99e02b27b4d219a6426cca34d8ffc5cb9d83870f Mon Sep 17 00:00:00 2001 From: atmonshi Date: Wed, 17 Jul 2024 13:13:42 +0000 Subject: [PATCH 2/2] Fix styling --- src/Fields/FieldsContract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fields/FieldsContract.php b/src/Fields/FieldsContract.php index 580cdb19..799faa80 100644 --- a/src/Fields/FieldsContract.php +++ b/src/Fields/FieldsContract.php @@ -90,7 +90,7 @@ public function appendFilamentComponentsOptions($component, $zeusField, bool $ha return null; } - if (!$zeusField instanceof FieldPreset && $zeusField->section->form->extensions !== 'LaraZeus\\BoltPro\\Extensions\\Grades') { + if (! $zeusField instanceof FieldPreset && $zeusField->section->form->extensions !== 'LaraZeus\\BoltPro\\Extensions\\Grades') { return null; }