pregnant with asthma

Ok I just had an asthma attack at work due to a chemical being sprayed. It was hard for me to breathe, i got dizzy and my throat got super dry and my legs got really weak and felt like jello. I took my inhaler and went home. will my baby be ok? I'm so scared I'm going to miscarry now I'm only five weeks.