Skip to content

Fix error thrown with missing note fragment in DOM

What does this MR do?

  • Fix error thrown when loading the diff tab that doesn't have the note associated with the fragment hash in the URL.

Are there points in the code the reviewer needs to double check?

Reproduction:

  1. Visit a MR with a note hash that doesn't exist, /namespace/project/merge_requests/x/diffs#note_1234
  2. Notice the error throw when the diff tab loads

Why was this MR needed?

  • An error is thrown when loading the diff tab that doesn't have the note associated with the fragment hash in the URL.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #32888 (closed)

Edited by username-removed-892863

Merge request reports