Default value for a table filter with a morpTo select
where does one put the
->default()
on something like this:
13 Replies
one day discord will propperly format..
I want to filter to assigned to auth user, but how to set said value to the MorpToSelect as it has two values I dont really see how to do it with the
->default()
method
I had it working without the MorphToSelect as I would just default both selects, I am sure there is a clever way to do this as behind the scenes it should just be two selectsSolution
You would put it on the MorphToSelect I suspect returning an array?
was thinking the same but
does nothing
not on the filter nor on the MorphToSelect
tried without defining the type/id but doesnt work either.. and alot of other things tbh but cant get it to work sadly.. was hoping I was beeing silly
sounds like a bug as thats where you should put it probably
want me to try to make a reproduction repo or?
pls
alr, will let you know when i got it.. need to run to school in a bit
youngster
π ffs
seems to work in v3 check tomorrow if its something else in our project causing it then
oh you're on v2?
yeah
cant reproduce so must be something with my morph then, will dig in later.
...apperently when you sleep on it for a night it just magically works the next morning.. I changed absolutely nothing except throwing the container up π
well, thanks for the help haha
sounds like caching π
nah, not in dev.. didnt persist in session either :P