There is no reason to discontinue breastfeeding during pregnancy. There is nothing in the Islamic sources to prohibit it. And, according to the best of my knowledge, medical professionals do not recommend against it.
However, if you have any health concerns in doing so, you should consult your physician or gynecologist.
For details, you may also read my earlier answer linked below: