I’ve found a solution to this issue, but I want to make sure it’s the optimal approach. If anyone has suggestions for improvement, I would really appreciate it.
My solution: https://codesandbox.io/p/sandbox/select-custom-formula-qpp7ds