From 5e8fbc655277d7e7323a892d51dae489a970dad6 Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Wed, 2 Nov 2022 11:03:08 -0400 Subject: [PATCH] chore: fix some type errors in '/r' route --- packages/hoppscotch-app/src/pages/r/_id.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-app/src/pages/r/_id.vue b/packages/hoppscotch-app/src/pages/r/_id.vue index aa6f7c0da..15c65067b 100644 --- a/packages/hoppscotch-app/src/pages/r/_id.vue +++ b/packages/hoppscotch-app/src/pages/r/_id.vue @@ -124,6 +124,7 @@ export default defineComponent({ shortcodeDetails, reloadApplication, t, + route, IconHome, IconRefreshCW, } @@ -135,8 +136,8 @@ export default defineComponent({ } }, mounted() { - if (typeof this.$route.params.id === "string") { - this.shortcodeID = this.$route.params.id + if (typeof this.route.params.id === "string") { + this.shortcodeID = this.route.params.id } this.invalidLink = !this.shortcodeID },