Skip to content

Commit

Permalink
Fix for error when no step available
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanjansen committed Mar 1, 2021
1 parent 30376ac commit 56552bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/WithSteps.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function validateStep($step = null, $setNext = true)
$data = $this->customValidate($this->mapFields($resolvedFields, $this->store), $rules);

if (! $this->model->id) {
$this->completedSteps[] = $step->name;
$this->completedSteps[] = optional($step)->name;
}

$step = $this->step($step);
Expand Down

0 comments on commit 56552bc

Please sign in to comment.