fix(frontend): get commit hash correctly
This commit is contained in:
parent
7477814c1b
commit
c2a3016265
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
const versionParts = version.split("-");
|
const versionParts = version.split("-");
|
||||||
let commit = "[unknown]";
|
let commit = "[unknown]";
|
||||||
if (versionParts.length >= 3) commit = versionParts[2];
|
if (versionParts.length >= 3) commit = versionParts[2].slice(1);
|
||||||
|
|
||||||
const versionMismatch = data.git_commit !== commit && data.git_commit !== "[unknown]";
|
const versionMismatch = data.git_commit !== commit && data.git_commit !== "[unknown]";
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue