F
Filament14mo ago
RyoShio

Table rows automatically hidden problem

This is my invoice state table, and when I click on the checkbox of table group. I'm not sure why other rows is automatically hidden. This issue only occurs when I use the following code for the tabs.
$all = InvoiceState::whereHas('invoice', function ($query)
{
$query->whereNull('deleted_at');
});

tabs = [
null => ListRecords\Tab::make('All')
->query(fn ($query) => $all),
];
$all = InvoiceState::whereHas('invoice', function ($query)
{
$query->whereNull('deleted_at');
});

tabs = [
null => ListRecords\Tab::make('All')
->query(fn ($query) => $all),
];
If I use this code for the tabs, there are no issues.
tabs = [
null => ListRecords\Tab::make('All'),
]
tabs = [
null => ListRecords\Tab::make('All'),
]
So, I believe the issue lies in the query. What I am trying to do: Let the invoice state table filter the rows by tabs, which invoice has been soft deleted from database (deleted_at not null) What I did: Use query to do the filter action My issue: Some rows will automatically hidden when I pressed the check box of table group. I don't want to hidden these rows!
1 Reply
RyoShio
RyoShioOP14mo ago
Or can I just remove the check box on the group label?
Want results from more Discord servers?
Add your server