Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore spaces for vulnerability filters #19180

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class VulnerabilityFilterComponent {
return;
} else if (
item === OptionType.PROJECT_ID &&
this.valueMap[OptionType.PROJECT_ID]
this.valueMap[OptionType.PROJECT_ID]?.trim()
) {
result.projectId = this.valueMap[OptionType.PROJECT_ID]?.trim();
} else if (item === OptionType.SEVERITY) {
Expand All @@ -107,14 +107,14 @@ export class VulnerabilityFilterComponent {
);
}
} else if (item === OptionType.CVSS3) {
if (this.startScore || this.endScore) {
if (this.startScore?.trim() || this.endScore?.trim()) {
result.normal.push(
`${OptionType.CVSS3}=[${
this.startScore ? this.startScore?.trim() : '0.0'
}~${this.endScore ? this.endScore?.trim() : '10.0'}]`
);
}
} else if (this.valueMap[item]) {
} else if (this.valueMap[item]?.trim()) {
result.normal.push(`${item}=${this.valueMap[item]?.trim()}`);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h2>
{{ securitySummary?.none_cnt || 0 }}
</div>
</div>
<div class="clr-row" [hidden]="!securitySummary">
<div class="clr-row" [hidden]="!securitySummary?.total_vuls">
<div class="placeholder">
<div class="pie-chart" id="pie-chart"></div>
</div>
Expand Down