Merging object with same key, but not getting some datas

I need to write a lot so here is the link I already asked the same question on stackover-flow
I am stuck here