Is my mantis okay or just molting?

Hi, I'm fairly new to the world mantis world and was quite worried to see my lil buddy hanging upside down with only one leg attached to her enclosure, I've never seen her do this before she hasn't molted since I got her over a month ago and I'm concerned. Is she trying to molt?

She was originally hanging right side up with only one claw attached to the side of the enclosure and thought she was dead so I moved her around bit, she is alive but moved into this position so I've left her there.

Is there anything I can do or just wait it out?

(I sprayed some water on her when I originally thought she was dead and not moving).