Skip to content

Commit 5d25c40

Browse files
committed
Prevent initializing config when state is empty
1 parent cebffef commit 5d25c40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Filament/RelationManagers/FieldsRelationManager.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public function form(Form $form): Form
7070
->afterStateUpdated(function ($state, Set $set) {
7171
$set('config', []);
7272

73+
if (blank($state)) {
74+
return;
75+
}
76+
7377
$set('config', $this->initializeConfig($state));
7478
}),
7579
]),

0 commit comments

Comments
 (0)