Commit c578efdf authored by Alexander Turinske's avatar Alexander Turinske

Fix alert that always shows missing string

- the vulnerability.default_branch_name property is been renamed
  vulnerability.project_default_branch
- update tests
parent ae082172
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
<div> <div>
<resolution-alert <resolution-alert
v-if="showResolutionAlert" v-if="showResolutionAlert"
:default-branch-name="vulnerability.default_branch_name" :default-branch-name="vulnerability.project_default_branch"
/> />
<div class="detail-page-header"> <div class="detail-page-header">
<div class="detail-page-header-body align-items-center"> <div class="detail-page-header-body align-items-center">
......
...@@ -208,7 +208,7 @@ describe('Vulnerability Header', () => { ...@@ -208,7 +208,7 @@ describe('Vulnerability Header', () => {
beforeEach(() => { beforeEach(() => {
createWrapper({ createWrapper({
resolved_on_default_branch: true, resolved_on_default_branch: true,
default_branch_name: branchName, project_default_branch: branchName,
}); });
}); });
......
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