diff --git a/app/assets/javascripts/editor/execution.js b/app/assets/javascripts/editor/execution.js index cbf2103b..4988163e 100644 --- a/app/assets/javascripts/editor/execution.js +++ b/app/assets/javascripts/editor/execution.js @@ -23,7 +23,7 @@ CodeOceanEditorWebsocket = { const cleanedPath = url.replace(/\/\d+\//, '/*/').replace(/\/[^\/]+$/, '/*'); const websocketHost = window.location.origin.replace(/^http/, 'ws'); const sentryDescription = `WebSocket ${websocketHost}${cleanedPath}`; - const span = this.sentryTransaction.startChild({op: 'websocket.client', description: sentryDescription}) + const span = this.sentryTransaction?.startChild({op: 'websocket.client', description: sentryDescription}) this.websocket = new CommandSocket(this.createSocketUrl(url, span), function (evt) { this.resetOutputTab();