From d489224b0628c8f8c9f6f8bc6233320aa2b31612 Mon Sep 17 00:00:00 2001 From: nscuro Date: Wed, 11 Oct 2023 23:16:57 +0200 Subject: [PATCH] Fix outdated indicator not being displayed in dependency graph Regression introduced in #455 Signed-off-by: nscuro --- src/views/portfolio/projects/ProjectDependencyGraph.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/portfolio/projects/ProjectDependencyGraph.vue b/src/views/portfolio/projects/ProjectDependencyGraph.vue index 0de8a1b34..2989b5ae5 100644 --- a/src/views/portfolio/projects/ProjectDependencyGraph.vue +++ b/src/views/portfolio/projects/ProjectDependencyGraph.vue @@ -334,11 +334,13 @@ export default { let dependencies = [...data]; if (dependencies.length > 0) { for (let dependency of dependencies) { - if (dependency && dependency.directDependencies) { + if (dependency) { let treeNode = treeNodeMap.get(dependency.uuid); treeNode.latestVersion = dependency.latestVersion; - let jsonObject = JSON.parse(dependency.directDependencies); - this.$set(treeNode, 'children', this.transformDependenciesToOrgTree(jsonObject, false, treeNode, dependency.uuid, "COMPONENT")); + if (dependency.directDependencies) { + let jsonObject = JSON.parse(dependency.directDependencies); + this.$set(treeNode, 'children', this.transformDependenciesToOrgTree(jsonObject, false, treeNode, dependency.uuid, "COMPONENT")); + } } } }