Frontend: [UI Bug] Fix double error messages when loading a secret in the secret details page
Summary
When loading the secrets details page for a secret that does not exist (i.e. the secret name provided is invalid), two duplicate error messages show up.
Steps to reproduce
- Upload an Ultimate license and follow the instructions to enable the Secrets Manager.
- Go to
/project/-/secrets/SECRET_NAME_FOR_SECRET_THAT_DOESNT_EXIST/details - Verify that two alert messages show up.
Example Project
This is under the feature flags ci_tanukey_ui and secrets_manager, so this isn't available for other projects yet.
What is the current bug behavior?
The error messages are duplicated.
What is the expected correct behavior?
Only one error alert should be rendered.
Relevant logs and/or screenshots
Possible fixes
It looks like we're calling the alert twice in ee/app/assets/javascripts/ci/secrets/components/secret_details/secret_details_wrapper.vue. Removing one of the calls (probably the template one) should fix this.
Edited by 🤖 GitLab Bot 🤖
