When buying my PPOR I remained in a job I hated until I was approved for the loan, then I quit my job and went back to uni.
I'd wait and stick it out, assuming you can afford to hold the property during your transition phase.
Others may have a different view
Cheers
Beelzebub