Notice that people do undesirable jobs because they probably don't have many other options. UBI gives them another option. This would either make pay for undesirable jobs increase, OR people would be forced to automate them. Seems like a win win.
as if it were that easy. Why don't we worry about UBI once we actually reach the post scarcity economy?