I can't get past this whole animals are less important than people attitude that has us thinking that animals are disposable and we have the right to take their lives so easily.
Only mankind has the arrogance to believe that they are superior to the every single other living thing on the planet and that our needs and survival are of prime importance, regardless of the cost.
What exactly have our great big brains done for us - we are more violent and destructive, not only towards ourselves but towards anything/one that gets in our way, than any other creature on this planet. We have single handedly destroyed what was a beautiful and majestic planet and have we learned our lessons? No. We are, in our arrogance, continuing on a path that will most likely, one day destroy everything living thing on the planet.
Far more damage is done to humans, both adult and child, by other humans than is ever done by dogs, yet somehow a human life is more valuable than that of a dogs. Yes sometimes dogs do attack and its a terrible thing, but compared to the atrocities committed by humans every single day, its a drop in the ocean - and we supposedly are capable of higher and ethical thinking. 
Stop for a second and compare a dog that snaps the hand of a stranger to the mindless thugs that are shooting each other on the street over drugs or 'territory' and the innocent people that have been caught in the crossfire or for that matter, any sort of unpredictable violence commited by humans every single day - should someone who loses his temper and punches someone, be killed in case one day he does worse? Would we ever do that or would we give him a second chance and 'in an ideal world' perhaps offer him some help support in the form perhaps of counselling and anger management?
Fwiw, I do not believe that dogs/animals have rights above humans, but I do believe that every living thing has a right to life and to be treated with respect.
When we decide to share our lives with a pet, we make a commitment to that animal's care and welfare and that commitment should be for life - not just until it gets too hard. Yes, there are situations where people are unable to cope and need help from rescue centres and other caring organisations to either support them or take over helping the animal concerned - but in this case the OP is willing to honour her commitment to her dog and do whatever is necessary to keep both him and her baby safe, as well as preventing any future 'incidents'. None of us know her set up at home, or how well she can 'manage' keeping her dog, whilst also making sure her baby is safe. She has assured us that she is able to do so and we have no reason to doubt her.
These threads always end up the same way - straight split between the anti-dog and pro-dog people and lots of wild accusations and judgements. If you have nothing constructive to add, you can't offer any sensible advice, but have come here to judge and make nasty comments, honestly, why bother.
And that wasn't directed at any poster in particular, by the way. I am just sick of seeing the same old stuff churned out every single time a 'dog' thread appears. The OP asked for help and advice, she has been given lots - from both perspectives, anything else is just judgemental spite and quite frankly demonstrates my earlier point about the human race.