mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
add setOptions={{useWorker:false}} to all <AceEditor instances - fixes localdev "worker" error
This commit is contained in:
@ -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%"
|
||||
|
@ -111,6 +111,7 @@ function QDynamicFormField({
|
||||
{
|
||||
setFieldValue(name, value, false);
|
||||
}}
|
||||
setOptions={{useWorker: false}}
|
||||
width="100%"
|
||||
height="300px"
|
||||
value={value}
|
||||
|
@ -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}
|
||||
|
@ -232,6 +232,7 @@ function ScriptEditor({title, scriptId, contents, closeCallback, tableName, fiel
|
||||
name="editor"
|
||||
editorProps={{$blockScrolling: true}}
|
||||
setOptions={{
|
||||
useWorker: false,
|
||||
enableBasicAutocompletion: true,
|
||||
enableLiveAutocompletion: true,
|
||||
}}
|
||||
|
@ -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"
|
||||
|
@ -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")}
|
||||
|
@ -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%"
|
||||
|
@ -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}
|
||||
|
Reference in New Issue
Block a user