What would you do if a dog snapped at your 6 month old baby?

All he did was touch her arm lightly. Didn’t pull on her or anything and she almost bit him. These past 6 months have been completely fine no issues. She’s a lab, my boyfriends grandmas dog.