That could be problem for sure, people usually separate the tadpoles into a separate tank to ensure proper water quality though.
At the point of Amplexus watch for egg laying, once the eggs are laid remove the leaf and suspend it over a 10g tank with life support system. The tadpoles will hatch, fall right into the tank and you are good to raise baby tree frogs!!!
I call first dibs on babies

!