Cannot go to pending comment from the "Submit your review" pane
Summary
When I add a pending comment to a commit on an MR and try to click the comment from the "Submit your review" pane, GitLab does not navigate to the comment.
I can reproduce this across different MRs. I tried re-authenticating and clearing my browser cache.
Steps to reproduce
- Create an MR
- Leave a pending comment on a commit.
- Navigate back to "Overview" (not sure if this is necessary to repro, but makes the bug more obvious)
- Click the blue "Your review" button.
- Click the comment.
What is the current bug behavior?
GitLab does not navigate to pending comment.
What is the expected correct behavior?
GitLab navigates to pending comment.
Relevant logs and/or screenshots
Here's a screen recording:
gitlab-pending-comment-bug.mkv
In the browser console, I see the following error I click the link:
preview_item.vue:1 TypeError: Cannot read properties of null (reading '[redacted file name]')
at Object.K (actions.js:697:27)
at Object.o (pinia.mjs:1405:26)
at e.<computed> (pinia.mjs:1891:46)
at a.onClickDraft (review_drawer.vue:157:1)
at mn (vue.runtime.esm.js:3033:30)
at a.n (vue.runtime.esm.js:1832:20)
at mn (vue.runtime.esm.js:3033:30)
at e.$emit (vue.runtime.esm.js:3732:17)
at click (preview_item.vue:1:601)
Results of GitLab environment info
(I don't have access to the information requested by the template) GitLab CE 18.8.3.
(Sorry if I did this wrong. My first time reporting a GitLab issue.)
Edited by 🤖 GitLab Bot 🤖