In the first two movies, there were civilians aplenty.
In the last two, they weren't really needed, but they were acknowledged and addressed.
Infinity War had Tony head off into space to keep the devastation. We didn't need civilian reaction shots to convey the threat, because we had 4 pre-existing characters die, and half the universe at the climax, including much of the cast which the audience SAW. And while there weren't civilians, strictly speaking, we did have the Wakanda army to escalate tension. It opened with Thanos' forces standing over slaughtered civilians and ended with his victory. And we SAW the impact of Thanos' win.
In Endgame, we didn't need civilians because the threat had already been established, and the stakes established. And again, we SAW the effect of the Snap being undone at the climax with Cap.
So those are not a fair comparison to Justice League by any measure. Just sayin'.