Kindly refer to the following link(s):
Ruling on gathering to offer condolences to the family of the deceased & eating
Gatherings held to receive condolences and to mourn a deceased
What to do when asked to eat when we go for giving condolences to the deceased family
Can we sit & eat food with the family of the deceased while giving our condolences