Sick baby only eating fruits

My toddler has been sick and luckily will drink milk and water but doesn’t want any food but fruit. My friend told me to not let him get full on fruit but I think let him eat all the fruit he wants because it’s all he is eating. Thoughts?