Fix: start event listener invalid causing console error
requested to merge gitlab-jh/jh-team/gitlab:fix/star-event-listener-invalid-causing-error into master
What does this MR do and why?
Reason
The template _stars.html.haml
uses an if-else branch to control the rendering. For users that logged in it would not be an issue at all, but for users visiting public repos without logging in, the console will report an error about calling a method from null object.
/cc @prajnamas @orozot @qk44077907
Describe in detail what your merge request does and why.
Screenshots or screen recordings
Before | After |
---|---|
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.