Skip to content

Commit

Permalink
Fix issue with handle types not matching
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed May 22, 2024
1 parent c5d55fd commit 9cfee21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Livewire/Concerns/WithSteps.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ public function updatedStepVisibility($value): void
{
/* Remove validation errors of hidden steps. */
collect($this->stepVisibility)
->filter(fn ($value) => $value === false)
->each(fn ($visible, $handle) => $this->steps->firstWhere(fn ($step) => $step->handle() === $handle)->resetErrorBag());

->filter(fn (bool $value) => $value === false)
->each(fn (bool $visible, string $handle) => $this->steps->firstWhere(fn ($step) => $step->handle() === $handle)->resetErrorBag());
}
}

0 comments on commit 9cfee21

Please sign in to comment.