Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: remove unwanted debug info (#2851)

Akash K1ecd22204d17
diff --git a/packages/hoppscotch-app/src/composables/codemirror.ts b/packages/hoppscotch-app/src/composables/codemirror.ts
index ae67c5023..0f4affc7a 100644
--- a/packages/hoppscotch-app/src/composables/codemirror.ts
+++ b/packages/hoppscotch-app/src/composables/codemirror.ts
@@ -40,8 +40,6 @@ import {
import { HoppEnvironmentPlugin } from "@helpers/editor/extensions/HoppEnvironment"
// TODO: Migrate from legacy mode
-import { captureException } from "@sentry/vue"
-
type ExtendedEditorConfig = {
mode: string
placeholder: string
@@ -286,7 +284,7 @@ export function useCodemirror(
view.value?.destroy()
})
- watch(value, (newVal, oldVal) => {
+ watch(value, (newVal) => {
if (newVal === undefined) {
view.value?.destroy()
view.value = undefined
@@ -297,29 +295,14 @@ export function useCodemirror(
initView(el.value)
}
if (cachedValue.value !== newVal) {
- try {
- view.value?.dispatch({
- filter: false,
- changes: {
- from: 0,
- to: view.value.state.doc.length,
- insert: newVal,
- },
- })
- } catch (e) {
- captureException(e, {
- extra: {
- newVal,
- oldVal,
- changes: {
- from: 0,
- to: view.value?.state.doc.length,
- insert: newVal,
- cachedValue,
- },
- },
- })
- }
+ view.value?.dispatch({
+ filter: false,
+ changes: {
+ from: 0,
+ to: view.value.state.doc.length,
+ insert: newVal,
+ },
+ })
}
cachedValue.value = newVal
})