From 921ca266882f6a4c47f7b3c73be1fc82c689b51c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Jun 2021 05:08:37 +0000 Subject: [PATCH 1/2] Bump vue-router from 3.5.1 to 3.5.2 Bumps [vue-router](https://github.com/vuejs/vue-router) from 3.5.1 to 3.5.2. - [Release notes](https://github.com/vuejs/vue-router/releases) - [Changelog](https://github.com/vuejs/vue-router/blob/dev/CHANGELOG.md) - [Commits](https://github.com/vuejs/vue-router/compare/v3.5.1...v3.5.2) --- updated-dependencies: - dependency-name: vue-router dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 09fc62e8..a98d2c6e 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "vue-grid-layout": "^2.3.12", "vue-material-design-icons": "^4.12.1", "vue-property-decorator": "^9.1.2", - "vue-router": "^3.5.1", + "vue-router": "^3.5.2", "vuex": "^3.6.2", "vuex-class": "^0.3.2" }, diff --git a/yarn.lock b/yarn.lock index 3aa472e8..7ad63393 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10829,10 +10829,10 @@ vue-property-decorator@^9.1.2: resolved "https://registry.yarnpkg.com/vue-property-decorator/-/vue-property-decorator-9.1.2.tgz#266a2eac61ba6527e2e68a6933cfb98fddab5457" integrity sha512-xYA8MkZynPBGd/w5QFJ2d/NM0z/YeegMqYTphy7NJQXbZcuU6FC6AOdUAcy4SXP+YnkerC6AfH+ldg7PDk9ESQ== -vue-router@^3.5.1: - version "3.5.1" - resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.5.1.tgz#edf3cf4907952d1e0583e079237220c5ff6eb6c9" - integrity sha512-RRQNLT8Mzr8z7eL4p7BtKvRaTSGdCbTy2+Mm5HTJvLGYSSeG9gDzNasJPP/yOYKLy+/cLG/ftrqq5fvkFwBJEw== +vue-router@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-3.5.2.tgz#5f55e3f251970e36c3e8d88a7cd2d67a350ade5c" + integrity sha512-807gn82hTnjCYGrnF3eNmIw/dk7/GE4B5h69BlyCK9KHASwSloD1Sjcn06zg9fVG4fYH2DrsNBZkpLtb25WtaQ== vue-style-loader@^4.1.0, vue-style-loader@^4.1.2: version "4.1.3" From 096c96260789b68f676c1abf82c4199420f7b6ea Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 28 Jun 2021 19:31:05 +0200 Subject: [PATCH 2/2] Fix possibly undefined type error --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index 5ace1ffa..a11ac593 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -72,7 +72,7 @@ router.beforeEach((to, from, next) => { // No login if already logged in next({ path: '/' }); } - if (!to.meta.allowAnonymous && !userService.loggedIn()) { + if (!to.meta?.allowAnonymous && !userService.loggedIn()) { // Forward to login if login is required next({ path: '/login',