From 70efda470a969020252f54b4f7b12c920700225e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bastos?= Date: Fri, 3 Jan 2020 00:01:52 +0000 Subject: [PATCH] Fixed an issue in the clearSection function Removed a console.log --- src/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 6b67d358c..89b3134a0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -263,8 +263,7 @@ class App extends React.Component<{}, AppState> { }; clearSelection = () => { - const newElements = [...this.state.elements]; - newElements.map(element => { + const newElements = this.state.elements.map(element => { return { ...element, isSelected: false }; }); this.setState({ elements: newElements }); @@ -508,7 +507,6 @@ class App extends React.Component<{}, AppState> { }} onPaste={e => { const paste = e.clipboardData.getData("text"); - console.log(paste); let parsedElements; try { parsedElements = JSON.parse(paste);