Welcome to the forum and irv2.
You need double latches both sides of that bed platform, I would say and the pin latch that has the slots that will hold bolt in place so it cannot slip back. I had a spring loaded in another coach of different MFG years ago. Not sure what your latch is going into a board on wall or a hole into stud in wall.
This link will give you many other items you need to know about as you travel.
A search of your problem.
UNTIL you get it fixed a 2x4 under bed platform should hold it up till fixed.
Good luck with your fix and safe travels.