A mother convicted of the manslaughter of her young two sons who drowned in 2019 has pleaded guilty to supplying another child with cannabis in the weeks after their deaths.