Browse Source
Using canMove() API for validation
- fixed another typo
pull/4243/head
Muhammad Junaid
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/commands/view/PasteComponent.js
|
|
|
@ -17,7 +17,7 @@ export default { |
|
|
|
const at = coll.indexOf(comp) + 1; |
|
|
|
const addOpts = { at, action: opts.action || 'paste-component' }; |
|
|
|
const copyable = clp.filter(cop => cop.get('copyable')); |
|
|
|
const pasteable = copyable.filter(cop => editor.Components.canMove(comp.parent(), cop).result); |
|
|
|
const pasteable = copyable.filter(cop => ed.Components.canMove(comp.parent(), cop).result); |
|
|
|
|
|
|
|
if (contains(clp, comp) && comp.get('copyable')) { |
|
|
|
added = coll.add(comp.clone(), addOpts); |
|
|
|
|