From 0c170214bfda0fe92ad72a4a2bbb0558f4fd94ff Mon Sep 17 00:00:00 2001 From: Nivedin Date: Wed, 14 Jun 2023 20:21:03 +0530 Subject: [PATCH] fix: shortcode screen stuck when invalid link --- packages/hoppscotch-common/src/pages/r/_id.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/hoppscotch-common/src/pages/r/_id.vue b/packages/hoppscotch-common/src/pages/r/_id.vue index 64b917981..70155ce0b 100644 --- a/packages/hoppscotch-common/src/pages/r/_id.vue +++ b/packages/hoppscotch-common/src/pages/r/_id.vue @@ -11,6 +11,14 @@

{{ t("error.invalid_link_description") }}

+

+ +

{ const data = shortcodeDetails.data if (E.isRight(data)) { + if (!data.right.shortcode?.request) { + invalidLink.value = true + return + } + const request: unknown = JSON.parse(data.right.shortcode?.request as string) createNewTab({