Skip to content

Commit

Permalink
Merge pull request #12819 from filamentphp/fix/state-overwritten-with…
Browse files Browse the repository at this point in the history
…out-state-path

fix: State overwritten without state path
  • Loading branch information
danharrin authored May 16, 2024
2 parents bdd7187 + af9f759 commit 53732cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forms/src/Components/Concerns/HasState.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function hydrateDefaultState(?array &$hydratedDefaultState): void
}

if (! $this->hasDefaultState()) {
$this->state(null);
$this->hasStatePath() && $this->state(null);

return;
}
Expand Down

0 comments on commit 53732cb

Please sign in to comment.