Fix autosuggestions in monaco editor (#1953)

# What this PR does

Bugfix for Monaco Editor on showing suggestions
This commit is contained in:
Rares Mardare 2023-05-23 16:17:46 +03:00 committed by GitHub
parent 5e97a2d500
commit 3c54d1bd30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,11 +83,6 @@ const MonacoEditor: FC<MonacoEditorProps> = (props) => {
return <LoadingPlaceholder text="Loading..." />;
}
const otherProps: any = {};
if (useAutoCompleteList) {
otherProps.getSuggestions = { autoCompleteList };
}
return (
<CodeEditor
monacoOptions={monacoOptions}
@ -99,7 +94,7 @@ const MonacoEditor: FC<MonacoEditorProps> = (props) => {
width="100%"
height={height}
onEditorDidMount={handleMount}
{...otherProps}
getSuggestions={useAutoCompleteList ? autoCompleteList : undefined}
/>
);
};