Skip to content

Commit

Permalink
fix: dashboard invalid version on load
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Jun 5, 2020
1 parent 155449f commit deacd80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/components/admin/admin-dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 4 additions & 0 deletions server/app/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ defaults:
theme: 'default'
iconset: 'md'
darkMode: false
features:
featurePageRatings: true
featurePageComments: true
featurePersonalWikis: true
security:
securityOpenRedirect: true
securityIframe: true
Expand Down

0 comments on commit deacd80

Please sign in to comment.