Update InteractsWithActions.php

This commit is contained in:
Dan Harrin
2023-01-07 12:40:18 +06:00
parent 51ef95059a
commit 08c98e8345
@@ -260,10 +260,6 @@ trait InteractsWithActions
return $action;
}
if (! method_exists($this, $name)) {
throw new Exception("Action [$name] is not registered within a [$name()] method on the Livewire component.");
}
$action = Action::configureUsing(
Closure::fromCallable([$this, 'configureAction']),
fn () => $this->{$name}(),