浏览代码

Remove redundant cloning values taken from editor.config.

Maciej Gołaszewski 7 年之前
父节点
当前提交
32cf8d20b1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-ckfinder/src/ckfindercommand.js

+ 1 - 1
packages/ckeditor5-ckfinder/src/ckfindercommand.js

@@ -58,7 +58,7 @@ export default class CKFinderCommand extends Command {
 			throw new CKEditorError( 'ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".' );
 		}
 
-		const options = Object.assign( {}, this.editor.config.get( 'ckfinder.options' ) );
+		const options = this.editor.config.get( 'ckfinder.options' ) || {};
 
 		options.chooseFiles = true;