Skip to content

Commit

Permalink
fix(ui): Request Panel > Query > URL Preview not refreshing after cha…
Browse files Browse the repository at this point in the history
…nging Environment in folder (resolves #310)
  • Loading branch information
flawiddsouza committed Feb 17, 2025
1 parent 7a3a566 commit 6bce6ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ui/src/components/RequestPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ export default {
return this.$store.state.activeWorkspace
},
collectionItemEnvironmentResolved() {
if (this.activeTab === null) {
return {}
}
return this.$store.state.tabEnvironmentResolved[this.activeTab._id] ?? {}
},
flags() {
Expand Down Expand Up @@ -711,6 +714,9 @@ export default {
},
deep: true
},
collectionItemEnvironmentResolved() {
this.getUrlPreview()
},
graphql: {
handler() {
if(this.disableGraphqlWatch) {
Expand Down

0 comments on commit 6bce6ab

Please sign in to comment.