Only reload user if it _is_ a user #232

Merged
floatingghost merged 5 commits from four-oh-four into develop 2022-11-22 14:40:25 +00:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 15a15e7bd9 - Show all commits

View file

@ -7,7 +7,7 @@ pipeline:
commands:
- yarn
- yarn lint
- yarn stylelint
#- yarn stylelint
test:
when:

View file

@ -11,7 +11,7 @@
"unit:watch": "karma start test/unit/karma.conf.js --single-run=false",
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e",
"stylelint": "npx stylelint src/components/status/status.scss",
"stylelint": "stylelint src/**/*.scss",
"lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs",
"lint-fix": "eslint --fix --ext .js,.vue src test/unit/specs test/e2e/specs"
},

View file

@ -184,7 +184,7 @@ const UserProfile = {
},
watch: {
'$route.params.id': function (newVal) {
if (isUserPage(this.$route) && newVal) {
if (isUserPage(this.$route) && ewVal) {
this.switchUser(newVal)
}
},