File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,9 @@ public function bootedInteractsWithActions(): void
9898
9999 // Boot the InteractsWithTable trait first so the table object is available.
100100 if (! ($ this instanceof HasTable)) {
101- $ this ->cacheMountedActions ($ this ->mountedActions );
101+ if (empty ($ this ->cacheMountedActions ($ this ->mountedActions ))) {
102+ $ this ->mountedActions = [];
103+ }
102104 }
103105 }
104106
@@ -480,7 +482,11 @@ public function getMountedAction(?int $actionNestingIndex = null): ?Action
480482 */
481483 protected function cacheMountedActions (array $ mountedActions ): array
482484 {
483- return $ this ->cachedMountedActions = $ this ->resolveActions ($ mountedActions );
485+ try {
486+ return $ this ->cachedMountedActions = $ this ->resolveActions ($ mountedActions );
487+ } catch (ActionNotResolvableException ) {
488+ return $ this ->cachedMountedActions = [];
489+ }
484490 }
485491
486492 /**
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ public function bootedInteractsWithTable(): void
4848
4949 $ this ->cacheSchema ('tableFiltersForm ' , $ this ->getTableFiltersForm (...));
5050
51- $ this ->cacheMountedActions ($ this ->mountedActions );
51+ if (empty ($ this ->cacheMountedActions ($ this ->mountedActions ))) {
52+ $ this ->mountedActions = [];
53+ }
5254
5355 $ this ->initTableColumnManager ();
5456
You can’t perform that action at this time.
0 commit comments