Answer:
she wanted to forego the dessert and leave while they could.
Unless "she" wanted to get in front of the dessert, the word "forego" is used incorrectly in the preceding sentence.
Forego: To go or come before something in position, time, or sequence.
Forgo: To abstain from, to do without something
Thus, the above sentence should read:
"She wanted to forgo the dessert and leave while they could."