Infection during pregnancy

sharaf
Hi ladies I have a bad tooth and I went to dentist and they told me to do a root filling or remove the tooth but then in a week I found out I'm pregnant and I dropped the idea, but now I think it has infected and my mouth has been swollen, I'm scared this will harm my baby, I'm just 6w1d,, what should I do for this?