Fighting in front of baby

My husband and I fought in front of our baby today. I feel so awful about it and everything escalated so fast. How do you manage when getting into a fight with someone in front of your baby?