I find the easies way to fix this is to get a replacement connector and carefully removing the folding latch to then snap onto the one on the logic board.
I'll need to dig up a new source as the one I had does't have them presently. Don't feel bad everyone tends to pop them off at some point. If you are lucky you might find it, I have yet to see one break.
@dadibrokeit - Here's a source for the connector Macbook Pro 13" A1708 2016 2017 J6951 Battery Board Data FPC Socket Connector 10pins on Motherboard
You do need the cable connected for the system to run, and the cable is available as a spare.
crwdns2934105:0crwdne2934105:0
crwdns2934113:0crwdne2934113:0
crwdns2915270:0crwdne2915270:0
crwdns2889612:0crwdne2889612:0
2