Used scrubbing bubbles now freaking out

Okay so I know this may sound stupid but tonight I had to quickly clean the bath tub and I sprayed scrubbing bubbles in the tub and it smelled strong.. like you know how you smell something strong and it feels like it’s gotten in your mouth and it really hasn’t... well I’m freaking out now bc I’m wondering if it was bad for the baby to have smelled that. The door was open and I didn’t stay in the bathroom long at all but just worried about it. Bothers me bc I realize it’s an aerosol type spray. Feel like such an idiot. So wondering if anyone has thoughts on it. And no I won’t ever use it again and will switch to something different