diff --git a/packages/ui/src/components/RequestPanel.vue b/packages/ui/src/components/RequestPanel.vue index a78de3cf..321eb624 100644 --- a/packages/ui/src/components/RequestPanel.vue +++ b/packages/ui/src/components/RequestPanel.vue @@ -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() { @@ -711,6 +714,9 @@ export default { }, deep: true }, + collectionItemEnvironmentResolved() { + this.getUrlPreview() + }, graphql: { handler() { if(this.disableGraphqlWatch) {