From d853d043fae8c2a7afaa824979bb10764c40ce9b Mon Sep 17 00:00:00 2001 From: Flawid DSouza Date: Wed, 25 Sep 2024 14:10:59 +0530 Subject: [PATCH] fix(ui): Cannot read properties of null (reading 'url') at Proxy.getUrlPreview (fixes #252) --- packages/ui/src/components/RequestPanel.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/ui/src/components/RequestPanel.vue b/packages/ui/src/components/RequestPanel.vue index 06c05898..b431a6cc 100644 --- a/packages/ui/src/components/RequestPanel.vue +++ b/packages/ui/src/components/RequestPanel.vue @@ -1108,6 +1108,10 @@ export default { this.editTagModalShow = true }, async getUrlPreview() { + if (!this.activeTab) { + return + } + let url = this.activeTab.url ?? '' url = await substituteEnvironmentVariables(this.collectionItemEnvironmentResolved, url, { tagTrigger: false, noError: true })