Skip to content

Commit

Permalink
fix(ui): Cannot read properties of null (reading 'url') at Proxy.getU…
Browse files Browse the repository at this point in the history
…rlPreview (fixes #252)
  • Loading branch information
flawiddsouza committed Sep 25, 2024
1 parent f40802d commit d853d04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ui/src/components/RequestPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit d853d04

Please sign in to comment.