After successfully creating a new wiki page, two alert messages will appear

Summary

when creating a wiki page in any project, there were two alerts that appeared after successfully being created.

Steps to reproduce

  1. click the new page button on any wiki page
  2. fill in the title and description of the wiki
  3. and then click the create page button
  4. Then the two alerts in the lower left corner are displayed

Example Project

https://gitlab.com/youngbeomshin/empty_test_project/-/wikis/home

or create any new project.

What is the current bug behavior?

disappear two alerts message after the wiki was created.

What is the expected correct behavior?

the alert was shown only once.

Relevant logs and/or screenshots

修改wiki格式成功后弹出两个提示

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: \\\\\\\`sudo gitlab-rake gitlab:env:info\\\\\\\`) (For installations from source run and paste the output of: \\\\\\\`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\\\\\\\`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: \\\`sudo gitlab-rake gitlab:check SANITIZE=true\\\`) (For installations from source run and paste the output of: \\\`sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true\\\`) (we will only investigate if the tests are passing)

Possible fixes

Edited by yongfan shen