Default clickable row action

I've got a resource with both edit & view actions on the table row; I've tried overriding the default click action using the 'recordAction' method but it still defaults to view instead of edit.

Here's the table method, I can't tell if I'm being stupid/missing something glaringly obvious πŸ˜…

public static function table(Table $table): Table
{
    return $table
        ->columns([
            Tables\Columns\TextColumn::make('name')
                ->searchable()
                ->sortable()
        ])
        ->paginated(false)
        ->filters([
            //
        ])
        ->recordAction('edit')
        ->actions([
            Tables\Actions\EditAction::make(),
            Tables\Actions\ViewAction::make(),
        ]);
}
Solution
public static function table(Table $table): Table
{
    return $table
        ->columns([
            Tables\Columns\TextColumn::make('name')
                ->searchable()
                ->sortable()
        ])
        ->paginated(false)
        ->filters([
            //
        ])
        ->recordAction('edit')
        ->recordUrl(null)
        ->actions([
            Tables\Actions\EditAction::make(),
            Tables\Actions\ViewAction::make(),
        ]);
}
Was this page helpful?