Skip to content

Commit

Permalink
Update InteractsWithForms.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin authored Oct 23, 2024
1 parent 8752a72 commit 0527f55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/forms/src/Concerns/InteractsWithForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,8 @@ public function updatingInteractsWithForms(string $statePath): void
{
$statePath = (string) str($statePath)->before('.');

if (! Arr::has($this->oldFormState, $statePath)) {
$this->oldFormState[$statePath] = data_get($this, $statePath);
}
// https://github.com/filamentphp/filament/pull/13973
$this->oldFormState[$statePath] ??= data_get($this, $statePath);
}

public function getOldFormState(string $statePath): mixed
Expand Down

0 comments on commit 0527f55

Please sign in to comment.