Skip to content

Commit 35f9f5d

Browse files
Baspaclaude
andcommitted
fix: disable sorting on computed status column
Status is a computed attribute (accessor) and not a database column. Sorting on it causes a SQL error. This fix disables sorting for the status column. Fixes #61 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0318774 commit 35f9f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/MailResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public static function table(Table $table): Table
336336
->columns([
337337
TextColumn::make('status')
338338
->label(__('Status'))
339-
->sortable()
339+
->sortable(false)
340340
->searchable(false)
341341
->badge()
342342
->color(fn (string $state): string => match ($state) {

0 commit comments

Comments
 (0)