fix(client): prevent non-serializable editor instance in save actions (#66625)

This commit is contained in:
Ragini Pandey
2026-03-26 12:46:47 +05:30
committed by GitHub
parent 40796a80c3
commit 921097b321

View File

@@ -655,12 +655,12 @@ const Editor = (props: EditorProps): JSX.Element => {
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS,
monaco.KeyMod.WinCtrl | monaco.KeyCode.KeyS
],
run:
run: () =>
props.saveSubmissionToDB && props.isSignedIn
? // save to database
props.saveChallenge
props.saveChallenge()
: // save to local storage
props.saveEditorContent
props.saveEditorContent()
});
editor.addAction({
id: 'toggle-accessibility',