From cac64207df1f40fe40910af9fd67fd927e9cbda3 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Sat, 7 Jan 2023 12:47:58 +0600 Subject: [PATCH] Update InteractsWithActions.php --- packages/actions/src/Concerns/InteractsWithActions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/actions/src/Concerns/InteractsWithActions.php b/packages/actions/src/Concerns/InteractsWithActions.php index 45c4073704..658ad70d85 100644 --- a/packages/actions/src/Concerns/InteractsWithActions.php +++ b/packages/actions/src/Concerns/InteractsWithActions.php @@ -260,6 +260,10 @@ trait InteractsWithActions return $action; } + if (! method_exists($this, $name)) { + return null; + } + $action = Action::configureUsing( Closure::fromCallable([$this, 'configureAction']), fn () => $this->{$name}(),