Actually, better for her to break that off before. Had your grandpa died a day before the breakup, she may have been guilted in to staying with you while you mourned, and who knows what awkward conversations would have come up regarding the apartment.
IMO, you both dodged a bullet that things happened in the order…