Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: envinput crash on debounce handle editor undefined
Andrew Bastin314c0968b146
diff --git a/packages/hoppscotch-app/components/smart/EnvInput.vue b/packages/hoppscotch-app/components/smart/EnvInput.vueindex a922c6ba6..3668fd9f4 100644--- a/packages/hoppscotch-app/components/smart/EnvInput.vue+++ b/packages/hoppscotch-app/components/smart/EnvInput.vue@@ -120,9 +120,11 @@ export default defineComponent({},handleChange() {this.debouncedHandler = debounce(function () {- if (this.internalValue !== this.$refs.editor.textContent) {- this.internalValue = this.$refs.editor.textContent- this.processHighlights()+ if (this.$refs.editor) {+ if (this.internalValue !== this.$refs.editor.textContent) {+ this.internalValue = this.$refs.editor.textContent+ this.processHighlights()+ }}}, 5)this.debouncedHandler()