Commit 3c0c9ba3 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/vueLastCommitChecks' into 'master'

Check for existence of last commit sha

See merge request gitlab-org/gitlab!25799
parents a3674a6f d32d6b5c
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
return this.$apollo.queries.commit.loading; return this.$apollo.queries.commit.loading;
}, },
showCommitId() { showCommitId() {
return this.commit.sha.substr(0, 8); return this.commit?.sha?.substr(0, 8);
}, },
}, },
watch: { watch: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment