Skip to content

Commit

Permalink
Merge pull request DependencyTrack#410 from rbt-mm/remove-project-fie…
Browse files Browse the repository at this point in the history
…ld-parentuuid

Remove unnecessary field `parentUuid` in `ProjectList`
  • Loading branch information
nscuro committed Feb 9, 2023
2 parents 9db046a + d269f1f commit 45b4910
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/portfolio/projects/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@
let url = this.apiUrl(project.uuid)
await this.axios.get(url).then((response) => {
for (let project of response.data) {
project.pid = MurmurHash2(project.parentUuid).result()
if (project.parent) {
project.pid = MurmurHash2(project.parent.uuid).result()
}
}
this.$refs.table.append(response.data)
})
Expand Down

0 comments on commit 45b4910

Please sign in to comment.