"Cannot read property 'name' of undefined" in License analysis MR widget
Summary
When the License Compliance MR widget loads, a Cannot read property 'name' of undefined
is thrown:
Error | Code |
---|---|
Steps to reproduce
- Open this MR: !49614 (merged).
- Wait a few seconds for the widget to load.
What is the current bug behavior?
An error is thrown and logged to the console.
What is the expected correct behavior?
No error thrown
Possible fixes
Handle the case where the packages list is empty.