Fix broken dashboard (#1328)

This commit is contained in:
Geometrically
2023-08-22 11:59:45 -04:00
committed by GitHub
parent 0a59a06121
commit 2454a03c2b
3 changed files with 9 additions and 4 deletions

View File

@@ -39,7 +39,11 @@ export const getProjectLink = (project) => {
}
export const getVersionLink = (project, version) => {
return getProjectLink(project) + '/version/' + version.id
if (version) {
return getProjectLink(project) + '/version/' + version.id
} else {
return getProjectLink(project)
}
}
export const isApproved = (project) => {