Cancelling automatic merge shows blank metrics and takes a while to show the right buttons

In a running pipeline:

  1. Click on Merge When Pipeline Succeeds in the merge request widget
  2. Then click Cancel. Momentarily this shows:

image

It takes a while to go back to showing the right widget.

/cc: @fatihacet