Performance issue on multiselect workflow

  1. I have a multiselect that is bound to a collection of users, that includes the current user.
  2. The initial value is set to the current user

I want to make it so that the user cannot delete themselves from the multiselect.

I have the following workflow completed OnChange of the multiselect:

Modify multiselect-currentselection Variable:

if( contains ( multiselect-currentselection , user_id ) = false, prepend(multiselect-currentselection, user_id), multiselect-currentselection)

This is creating enormous performance issues, where everything lags, and the editor moves extremely slow. It does okay on production side, but not great.

Any idea why? Or, what I can do to fix it?

Thank you.