Skip to content

Commit 3a0bacd

Browse files
committed
Prevent access to FlowrSettings after page navigation
When users have a running execution and navigate away, `this.getFlowrSettings()` might be `undefined`. Fixes CODEOCEAN-FRONTEND-DK
1 parent 4514032 commit 3a0bacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/editor/participantsupport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ CodeOceanEditorFlowr = {
7777
return results;
7878
},
7979
handleStderrOutputForFlowr: function () {
80-
if (! this.getFlowrSettings().enabled) return;
80+
if (! this.getFlowrSettings()?.enabled) return;
8181

8282
var flowrHintBody = $('#flowrHint .card-body');
8383
flowrHintBody.empty();

0 commit comments

Comments
 (0)