If your child takes a sudden dislike to a particular food, don't pay much attention to their latest dislike. Young children go through food phases.
Instead of forcing them to eat it, try reintroducing the rejected food again in a week or so, chances are they'll eat it without a second thought.