Skip to content

Fix error flash is hidden when updating issue repeatedly

What does this MR do and why?

closes #356942 (closed)

Screenshots or screen recordings

before after
image image

How to set up and validate locally

  1. mock updateIssuable in app/assets/javascripts/issues/show/services/index.js and give a 422 http status code and a json response like {"errors":["Description sensitive or illegal characters involved"]}
  2. edit an existing issue, click save changes button.
  3. error flash will be shown, click save changes button again.
  4. error flash will still be shown.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kun Qian

Merge request reports