Commit 3a687973 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Fix remediated badge on vulnerabilities list

Client application is now correctly depending on the GraphQL API field
for resolved_on_default_branch information.
parent dc6fa046
......@@ -336,7 +336,7 @@ export default {
{{ createLocationString(item.location) }}
</div>
</div>
<remediated-badge v-if="item.resolved_on_default_branch" class="ml-2" />
<remediated-badge v-if="item.resolvedOnDefaultBranch" class="ml-2" />
</template>
<template #cell(identifier)="{ item }">
......
......@@ -5,6 +5,7 @@ fragment Vulnerability on Vulnerability {
severity
vulnerabilityPath
userNotesCount
resolvedOnDefaultBranch
issueLinks(linkType: CREATED) {
nodes {
issue {
......
......@@ -289,7 +289,7 @@ describe('Vulnerability list component', () => {
beforeEach(() => {
newVulnerabilities = generateVulnerabilities();
newVulnerabilities[0].resolved_on_default_branch = true;
newVulnerabilities[0].resolvedOnDefaultBranch = true;
wrapper = createWrapper({ props: { vulnerabilities: newVulnerabilities } });
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment