add setOptions={{useWorker:false}} to all <AceEditor instances - fixes localdev "worker" error

This commit is contained in:
2023-04-20 10:52:11 -05:00
parent 7f49f4b1a1
commit 1c0535cdc0
8 changed files with 8 additions and 0 deletions

View File

@ -55,6 +55,7 @@ function ScriptDocsForm({helpText, exampleCode, aceEditorHeight}: Props): JSX.El
theme="github"
name={name}
editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
value={code}
readOnly
highlightActiveLine={false}

View File

@ -232,6 +232,7 @@ function ScriptEditor({title, scriptId, contents, closeCallback, tableName, fiel
name="editor"
editorProps={{$blockScrolling: true}}
setOptions={{
useWorker: false,
enableBasicAutocompletion: true,
enableLiveAutocompletion: true,
}}