21 weeks and I have the stomach bug

Tarah
I woke up in the middle of the night with mostly diahrea and a little puking and my stomach is in total knots... What is most important with being pregnant? Staying hydrated? I guess I'll call my doctor but I don't think there's anything I can do beside let it pass is this dangerous for the baby?  Please help!