Stuck in drain cycle

I’m currently having problems with the dishwasher not washing. It was running before and went into a drain cycle and has not come out of it. No matter what setting I have it on, the water will drain out of the tub and no water will flow into it. It is still running like it is in the rinse mode because if you fill the bottom with water and close the door, the water will drain out but the sprayers are still spraying water over the dishes until the tub is completely drained. Could this be an issue with the timer on the machine or do I have a problem with a diverter valve stuck/not working?

Any infowould be helpful.