Show dependency when project version is not found

This commit is contained in:
Jai A
2022-02-28 16:02:59 -07:00
parent 276e5453f1
commit 36a8f044ae

View File

@@ -654,6 +654,12 @@ export default {
dependency.project = this.dependencies.projects.find( dependency.project = this.dependencies.projects.find(
(x) => x.id === dependency.version.project_id (x) => x.id === dependency.version.project_id
) )
if (!dependency.project) {
dependency.project = this.dependencies.projects.find(
(x) => x.id === dependency.project_id
)
}
} }
}, },
async addDependency() { async addDependency() {