mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
This commit is contained in:
parent
dffdb7a714
commit
c212ab51ea
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ export const WorkpadPage = compose(
|
|||
}
|
||||
},
|
||||
pasteElements: () => {
|
||||
const { selectedElements, rootShapes } = JSON.parse(getClipboardData());
|
||||
const { selectedElements, rootShapes } = JSON.parse(getClipboardData()) || {};
|
||||
const clonedElements = selectedElements && cloneSubgraphs(selectedElements);
|
||||
if (clonedElements) {
|
||||
// first clone and persist the new node(s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue