Skip to content

Commit f419d03

Browse files
core: utils: helper_functions: Fix convertGitDescribeToUrl
Add check for undefined string Signed-off-by: Patrick José Pereira <[email protected]>
1 parent bce0c12 commit f419d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/frontend/src/utils/helper_functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function convertGitDescribeToUrl(git_describe: string): string {
4646
const project_url = `https://github.com/${user}/${repository}`
4747

4848
// Local development version, pointing to root page
49-
if (git_describe.endsWith('-dirty') || git_describe.length === 0) {
49+
if (!git_describe || git_describe.endsWith('-dirty') || git_describe.length === 0) {
5050
return project_url
5151
}
5252

0 commit comments

Comments
 (0)