Skip to content

Only render GFM when the element exists

Nicolas Dular requested to merge nd/fix-work-item-gfm-render into master

What does this MR do and why?

renderGFM can get called with an undefined element. To fix the resulting errors, we return early when the element is not defined.

Screenshots or screen recordings

Work Item page Issue Page
Screenshot_2022-12-19_at_14.33.16 Screenshot_2022-12-19_at_14.34.28

How to set up and validate locally

Work Items

  1. Open your browser console
  2. Go to the page of an issue
  3. Add a task without a description
  4. See the error

Issues

  1. Open your browser console
  2. Create a new issue with an empty description
  3. See the error in the console

MR acceptance checklist

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

Edited by Nicolas Dular

Merge request reports