Need to stop breastfeeding

as

I still sometimes nurse my 2 yr old to fall asleep and I am trying to stop because I am having I think breastfeeding aversion since I am 22 weeks pregnant. So I am trying to get my daughter to take a nap with out breastfeeding and she usually falls asleep 10 min or less but it’s been over an hour and I am just laying next to her. Will it get better??? It’s almost 3 pm and she’s still awake and hasn’t had a nap.