diff --git a/plugins/reporters/web-app-template/src/components/IssuesTable.jsx b/plugins/reporters/web-app-template/src/components/IssuesTable.jsx index 781fc60869c8f..1fe7f96ba00c4 100644 --- a/plugins/reporters/web-app-template/src/components/IssuesTable.jsx +++ b/plugins/reporters/web-app-template/src/components/IssuesTable.jsx @@ -157,14 +157,12 @@ class IssuesTable extends React.Component { filteredValue: filteredInfo.excludes || null, key: 'excludes', onFilter: (value, webAppOrtIssue) => { - const webAppPackage = webAppOrtIssue.package; - if (value === 'excluded') { - return webAppPackage.isExcluded; + return webAppOrtIssue.isExcluded; } if (value === 'included') { - return !webAppPackage.isExcluded; + return !webAppOrtIssue.isExcluded; } return false; @@ -172,7 +170,7 @@ class IssuesTable extends React.Component { render: (webAppOrtIssue) => { const webAppPackage = webAppOrtIssue.package; - return webAppPackage.isExcluded + return webAppOrtIssue.isExcluded ? (