Fix the MR widget that merged any MR when choosing the option "Merge when pipeline succeeds" from the dropdown

Jose Ivan Vargas requested to merge mr-widget-bug-fix into master

What does this MR do?

Fixes the dropdown option Merge when Pipeline succeeds merging the MR immediately

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

closes #29568 (closed)

cc @stanhu

Merge request reports