diff --git a/webapp/src/components/FirmwareInfo.vue b/webapp/src/components/FirmwareInfo.vue index 7a127c1..9eda893 100644 --- a/webapp/src/components/FirmwareInfo.vue +++ b/webapp/src/components/FirmwareInfo.vue @@ -17,9 +17,9 @@ {{ $t('firmwareinfo.FirmwareVersion') }} - - {{ systemStatus.git_hash?.substring(1) }} + {{ systemStatus.git_hash }} diff --git a/webapp/src/views/SystemInfoView.vue b/webapp/src/views/SystemInfoView.vue index cb1bd44..7150aa1 100644 --- a/webapp/src/views/SystemInfoView.vue +++ b/webapp/src/views/SystemInfoView.vue @@ -50,8 +50,9 @@ export default defineComponent({ }) }, getUpdateInfo() { + this.systemDataList.git_hash = this.systemDataList.git_hash?.substring(0, 1) == 'g' ? this.systemDataList.git_hash?.substring(1) : this.systemDataList.git_hash; const fetchUrl = "https://api.github.com/repos/tbnobody/OpenDTU/compare/" - + this.systemDataList.git_hash?.substring(1) + "...HEAD"; + + this.systemDataList.git_hash + "...HEAD"; fetch(fetchUrl) .then((response) => {