diff --git a/packages/tables/src/Table.php b/packages/tables/src/Table.php index 9896c1ac600..494f27407f5 100644 --- a/packages/tables/src/Table.php +++ b/packages/tables/src/Table.php @@ -146,7 +146,7 @@ public function primaryRecordAction($action) { $this->columns = collect($this->columns) ->map(function ($column) use ($action) { - if (! method_exists($column, 'action')) { + if (! $column->primary || ! method_exists($column, 'action')) { return $column; } @@ -161,7 +161,7 @@ public function primaryRecordUrl($url) { $this->columns = collect($this->columns) ->map(function ($column) use ($url) { - if (! method_exists($column, 'url')) { + if (! $column->primary || ! method_exists($column, 'url')) { return $column; }