Fix unnecessary option
This commit is contained in:
parent
8ab8d2ae95
commit
b4261b4671
1 changed files with 1 additions and 2 deletions
|
@ -572,11 +572,10 @@ export class EditorService extends Disposable implements EditorServiceImpl {
|
|||
untypedEditor = editor.editor.toUntyped(undefined, UntypedEditorContext.Default);
|
||||
|
||||
if (untypedEditor) {
|
||||
const override = editor.options?.override ?? untypedEditor.options?.override;
|
||||
// Preserve original options: specifically it is
|
||||
// possible that a `override` was defined from
|
||||
// the outside and we do not want to loose it.
|
||||
untypedEditor.options = { ...untypedEditor.options, ...editor.options, override };
|
||||
untypedEditor.options = { ...untypedEditor.options, ...editor.options };
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue