Phone [Q] I wiped the wrong parition

Can anyone help?

I have TWRP and i was factory resetting on my HTC One and i accidentally selected all partitions now i have no operating system . I can still access TWRP. Can anyone help me get it working again?