If this was a tradeoff between "not expose abuses by the US government" and "name these civillians", I think your point would be reasonable. But there was no tradeoff. Wikileaks was just lazy about it.
Due to the limited time window for release, the choice was either to release as-is or to never release at all.
Calling Wikileaks lazy is myopic. They didn't have the resources to redact the documents in the time window they had to work with, and they asked for help. The US govt knew exactly what would happen if they refused to help. It was a calculated move to maximise collateral damage and help drive the narrative that you now subscribe to. They didn't give a single fuck about the collateral damage, their response was focused on discrediting and prosecuting the source of the leak to send a message to anyone else considering exposing their wrongdoings.
The US govt acted like a bunch of insidious cartoon villains, and gaslighting its citizens about how this situation played out.
Which, specifically? I have heard that claim before. Would you mind linking to the specific leaks that endangered civilians? WikiLeaks is online and searchable, but I have not seen them.