Trying to be strong for unborn child

I am 22 weeks pregnant with my 1st child, unfortunately on Saturday afternoon my dad passed away at the age of 54, although I am busying myself with funeral arrangements and trying to be strong deep inside I am truly heartbroken and I'm unsure what effect this will have on my unborn child.