Filtering records with images gives false positives #15858
Unanswered
LemonPie22
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Table builder
Package Version
v3.3.2
How can we help you?
My
parts
resource has a FileUpload field for images:This corresponds to a json column in my
parts
table.I have a separate public-facing Filament table with a ternary filter on
images
:The problem is that, in some cases, the column contains an empty array, denoted by square brackets "[]", which is interpreted as not empty by the filter.
This results in records without images being included when they shouldn't be.
I've tried this:
But get the same result.
Same for this:
My
Part
model casts images to an array:Any ideas on how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions