Table action modal not showing up for some records
Hi everyone! As the title says, I have this table in a Resource's custom page.
The is the
TableQueries::outgoingQuery()
.
1 Reply
My existing table action is to open a modal accessing the existing values from each aggregated row through fn(Model $record) closure. While the action works with almost every row, I have encountered in at least 2 records where the table action triggers nothing rather than a loading indicator.
Then I added another action for testing purposes:
Action::make('test')->action(fn(Model $record) => dd($record)),
. This also dd'ed most of the rows but failed for the same 2 rows.
I tried getTableRecordKey()
, querying with min(id)
and max(id)
but no luck. Raw SQL queries through mysql cli or phpMyAdmin returned id
columns without a null
value. max(id)
and min(id)
actually did returned an id
value for these two items causing the error so far.
By the way, I use Cloudflare for the website, and some existing discussions on the internet say it might be related to cloudflare's minify HTML feature. But I don't see this setting on Cloudflare and they say this setting is deprecated.
Please guide me find the cause of this error.