Commit d32d6b5c authored by Phil Hughes's avatar Phil Hughes

Check for existence of last commit sha

Checks for the existence of the last commit sha
before calling the substr function
parent 750b16ff
......@@ -79,7 +79,7 @@ export default {
return this.$apollo.queries.commit.loading;
},
showCommitId() {
return this.commit.sha.substr(0, 8);
return this.commit?.sha?.substr(0, 8);
},
},
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