Hello Guys,
I use the Javascript function : "addOnProcessStatusChange" to get the Business Process Flow status change ("finished") and update the current entity.

Everything worked fine but the JavaScript function triggered two times when I change the Business Process Flow to finished.
Below the function I execute, I refer to an update so my plugin is trigerred twice too :

Can you please advise if you have faced this and what could be the possible reasons?
Thank you for your time,
Lucas