Dog’s tail hit my baby in the head...

I needed to use the bathroom so I asked my mom to hold my daughter while I went. So she was sitting on my bed holding her while my large dog was laying besides her. When I walked back into the room my dog got excited and jumped up and she hit my daughter in the back of the head with her wagging tail. My daughter is two weeks old. She started crying and it was time to feed her anyways so I started feeding her and she fell asleep while eating. She’s woken up once for about two minutes but she fell right back to sleep. Please don’t judge me I am normally very cautious about my dog around my baby but this was out of my control. Should I be worried about my daughter?? Could this have caused damage??