fix: dashboard invalid version on load

This commit is contained in:
NGPixel
2020-06-05 14:46:47 -04:00
parent 155449f8ea
commit deacd80c45
2 changed files with 9 additions and 1 deletions

View File

@@ -135,7 +135,11 @@ export default {
},
computed: {
isLatestVersion() {
return semverLte(this.info.latestVersion, this.info.currentVersion)
if (this.info.latestVersion === 'n/a' || this.info.currentVersion === 'n/a') {
return true
} else {
return semverLte(this.info.latestVersion, this.info.currentVersion)
}
},
info: get('admin/info'),
permissions: get('user/permissions')