Need advice - balancing friendship and family

This is just eating at me and I really need some neutral outside opinions on either how I should handle it, am in the wrong or was what I did ok? Definitely be honest, I will not take offense.

I’ll try to keep this summarized, my very good friend had her bachelorette party this weekend and I was suppose to fly out Friday. Thursday night my toddler (17 months) came down with a really high fever. I spent all night worrying, rushed him to the doctor Friday morning and got everything checked and he just has a virus but is clearly sick. I’m convinced I still need to go to my friends weekend so I head to airport. At this point I’m beyond stressed about my kid and all the hurtles it took to get to the airport. I fly out, try to put my best game face on but after arriving nothing is very well organized and I’m told to meet out in town with my luggage but they were about an hour late to the meeting spot. Not a huge deal though. So that night my husband says our baby’s fever still hasn’t gone down and he’s worried so I book the soonest flight home. This was at like 1am and everyone was asleep. So I leave a note explaining the situation and went home.

Someone must’ve texted a mutual friend who wasn’t there and told her I left and I guess everyone was upset with me about how I left and I should apologize. My kid is fine and I probably overreacted and should’ve just stayed but in the moment I made a decision and I can’t go back. But no one reached out to ask how my kid is or anything and I know what I did was crappy but I feel like that is also wrong?

Idk I just want to distance myself and idk if I should be the one to apologize first? I’m sorry I know this sounds so petty and dramatic.