mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
Fix rest parameters
This commit is contained in:
@@ -59,10 +59,7 @@ export default class MathUI extends Plugin {
|
||||
const editor = this.editor;
|
||||
const mathCommand = editor.commands.get( 'math' );
|
||||
|
||||
const mathConfig = {
|
||||
...defaultConfig,
|
||||
...this.editor.config.get( 'math' )
|
||||
};
|
||||
const mathConfig = Object.assign( defaultConfig, this.editor.config.get( 'math' ) );
|
||||
|
||||
const formView = new MainFormView( editor.locale, mathConfig.engine, mathConfig.enablePreview );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user