mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fixed an issue in the clearSection function
Removed a console.log
This commit is contained in:
parent
e82007e955
commit
70efda470a
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue