Skip to content

Commit

Permalink
fix(web-app-template): Fix webAppRuleViolation.package.id typeError
Browse files Browse the repository at this point in the history
Evaluator allows policy rule violations without a package see [1],
however this case was not supported in the data mapping from
`WebAppRuleViolation` to Ant Design table row data.

Fixes #9880.

[1]: https://github.com/oss-review-toolkit/ort/blob/cc6f09d/model/src/main/kotlin/RuleViolation.kt#L33

Signed-off-by: Thomas Steenbergen <[email protected]>
  • Loading branch information
tsteenbe committed Feb 2, 2025
1 parent c14c64e commit dbc833a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const RuleViolationsTable = ({
isResolved: webAppRuleViolation.isResolved,
key: webAppRuleViolation.key,
message: webAppRuleViolation.message,
packageId: webAppRuleViolation.package.id,
packageId: webAppRuleViolation.package
? webAppRuleViolation.package.id : '',
rule: webAppRuleViolation.rule,
severity: webAppRuleViolation.severity,
severityIndex: webAppRuleViolation.severityIndex,
Expand Down

0 comments on commit dbc833a

Please sign in to comment.