Skip to content

Conversation

@tmehnert
Copy link
Contributor

This will fix an error, that caused the License in the Legal tab of the Component details view was not set, even if the component had an resolved license.

The previous routine intialized the selectedLicense at a time, where the component was not always present. In my case the component was only present, after a hot reload during development. So initialized this field when the modal opens. I've tracked this by putting a console.log statement at the end of the retrieveLicenses method. In most cases this.component was an empty object.

Fixes #223

The previous routine intialized the selectedLicense
at a time, where the component was not always present.

Signed-off-by: Torsten Mehnert <torsten.mhn@gmail.com>
@nscuro nscuro merged commit 3885974 into DependencyTrack:master Sep 22, 2022
@tmehnert tmehnert deleted the fix-init-selected-license-in-component-details branch September 22, 2022 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

License deleted when a component is edited

2 participants