Skip to content

Fix javascript error in reCAPTCHA page when creating issue

What does this MR do and why?

closes #362639 (closed)

This MR adds a return condition to make new IssuableForm($('.issue-form')) doesn't run following code when .issue-form element doesn't exist

/cc @daveliu

Screenshots or screen recordings

How to set up and validate locally

  1. enter creating issue page
  2. type some spam style text for issue's title and description(123123123test for example)
  3. click create issue
  4. wait page jump to reCAPTCHA resolving page, and open the console of browser.

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

Loading