Closed martin-ro closed 1 year ago
Every time we pass null to a glider component a query is fired to see if a Media record exists.
null
It would be better to use the fallback (if defined) right away when $media is not integer.
$media
There was a recent merge to allow for uuid / ulid id's, so is_int() isn't going to work here. Maybe check for null instead?
Okay, if uuid's are supported checking for null is better. Should be good now?
Thanks
Every time we pass
null
to a glider component a query is fired to see if a Media record exists.It would be better to use the fallback (if defined) right away when
$media
is not integer.