Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c7646a2c
Commit
c7646a2c
authored
Nov 09, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imrprove supported_message lookup
* Don't use hard coded index
parent
1e5704bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ee/app/assets/javascripts/vulnerabilities/components/details.vue
...assets/javascripts/vulnerabilities/components/details.vue
+5
-4
No files found.
ee/app/assets/javascripts/vulnerabilities/components/details.vue
View file @
c7646a2c
...
...
@@ -87,7 +87,9 @@ export default {
status_code
:
statusCode
,
reason_phrase
:
reasonPhrase
,
headers
=
[],
}
=
this
.
vulnerability
?.
supporting_messages
[
1
].
response
;
}
=
this
.
vulnerability
?.
supporting_messages
?.
find
(
msg
=>
msg
.
name
===
SUPPORTING_MESSAGE_TYPES
.
RECORDED
,
).
response
;
const
headerLines
=
this
.
getHeadersAsCodeBlockLines
(
headers
);
return
statusCode
&&
reasonPhrase
&&
headerLines
...
...
@@ -122,9 +124,8 @@ export default {
},
recordedResponseData
()
{
if
(
!
(
this
.
vulnerability
?.
supporting_messages
&&
this
.
vulnerability
.
supporting_messages
[
1
]?.
name
===
SUPPORTING_MESSAGE_TYPES
.
RECORDED
!
this
.
vulnerability
?.
supporting_messages
?.
find
(
msg
=>
msg
.
name
===
SUPPORTING_MESSAGE_TYPES
.
RECORDED
,
)
)
{
return
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment