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

@ -170,6 +170,7 @@ function DataBagDataEditor({title, dataBagId, data, closeCallback}: DataBagDataE
theme="github"
name="editor"
editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
onChange={updateCode}
width="100%"
height="100%"

View File

@ -111,6 +111,7 @@ function QDynamicFormField({
{
setFieldValue(name, value, false);
}}
setOptions={{useWorker: false}}
width="100%"
height="300px"
value={value}

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,
}}

View File

@ -337,6 +337,7 @@ export default function DataBagViewer({dataBagId}: Props): JSX.Element
name={"viewData"}
readOnly
highlightActiveLine={false}
setOptions={{useWorker: false}}
editorProps={{$blockScrolling: true}}
width="100%"
height="400px"

View File

@ -416,6 +416,7 @@ export default function ScriptViewer({scriptId, associatedScriptTableName, assoc
readOnly
highlightActiveLine={false}
editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
width="100%"
height="400px"
value={selectedVersionRecord?.values?.get("contents")}

View File

@ -172,6 +172,7 @@ function RecordDeveloperView({table}: Props): JSX.Element
theme="github"
name="recordJSON"
editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
value={recordJSONString}
readOnly
width="100%"

View File

@ -457,6 +457,7 @@ function CodeViewer({name, mode, code}: {name: string; mode: string; code: strin
theme="github"
name={name}
editorProps={{$blockScrolling: true}}
setOptions={{useWorker: false}}
value={activeCode}
readOnly
highlightActiveLine={false}