Skip to content

Commit

Permalink
fix: State overwritten without state path
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed May 16, 2024
1 parent bdd7187 commit af9f759
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 af9f759

Please sign in to comment.