From 715780eec81bc40b09ec6a67ad6bf354452428b1 Mon Sep 17 00:00:00 2001 From: SeydX Date: Mon, 10 Jan 2022 23:11:57 +0100 Subject: [PATCH] fix wrong version check --- ui/src/views/Settings/subpages/system.vue | 4 ++-- ui/src/widgets/status/widget.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/views/Settings/subpages/system.vue b/ui/src/views/Settings/subpages/system.vue index 623e3b88..9c92933f 100644 --- a/ui/src/views/Settings/subpages/system.vue +++ b/ui/src/views/Settings/subpages/system.vue @@ -443,7 +443,7 @@ export default { }); this.npmPackageName = pkg.data.name; - this.latestVersion = relatedVersions[0]; + this.latestVersion = relatedVersions[0].value || relatedVersions[0]; this.updateAvailable = compareVersions.compare(this.latestVersion, this.currentVersion, '>'); this.$watch('config', this.configWatcher, { deep: true }); @@ -451,7 +451,7 @@ export default { this.loading = false; this.loadingProgress = false; } catch (err) { - console.log(err.message); + console.log(err); this.$toast.error(err.message); } }, diff --git a/ui/src/widgets/status/widget.vue b/ui/src/widgets/status/widget.vue index 17ee40ba..e70eed30 100644 --- a/ui/src/widgets/status/widget.vue +++ b/ui/src/widgets/status/widget.vue @@ -114,7 +114,7 @@ export default { }); this.npmPackageName = pkg.data.name; - this.latestVersion = relatedVersions[0]; + this.latestVersion = relatedVersions[0].value || relatedVersions[0]; this.updateAvailable = compareVersions.compare(this.latestVersion, this.currentVersion, '>'); this.loading = false;