Error when performing Workflow Action in Document

I have a custom app which uses workflow. We are experiencing error when changing workflow state. The error is below:

image

I don’t see anything wrong with this message. You just have the refresh the page.

It prompts everytime workflow action is made.

The error keeps on prompting everytime workflow action is clicked.