Skip to content

MR keyboard shortcuts n and p throw a console error if there are no discussions

What does this MR do and why?

Fixes the thrown console error if there aren't any discussions in a merge request.

Screenshots or screen recordings

console_error

How to set up and validate locally

  1. Open an MR with discussions: n & p work
  2. Open an MR without discussions: n & p don't through an error

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #213638 (closed)

Merge request reports

Loading