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 = () => {
|
clearSelection = () => {
|
||||||
const newElements = [...this.state.elements];
|
const newElements = this.state.elements.map(element => {
|
||||||
newElements.map(element => {
|
|
||||||
return { ...element, isSelected: false };
|
return { ...element, isSelected: false };
|
||||||
});
|
});
|
||||||
this.setState({ elements: newElements });
|
this.setState({ elements: newElements });
|
||||||
|
@ -508,7 +507,6 @@ class App extends React.Component<{}, AppState> {
|
||||||
}}
|
}}
|
||||||
onPaste={e => {
|
onPaste={e => {
|
||||||
const paste = e.clipboardData.getData("text");
|
const paste = e.clipboardData.getData("text");
|
||||||
console.log(paste);
|
|
||||||
let parsedElements;
|
let parsedElements;
|
||||||
try {
|
try {
|
||||||
parsedElements = JSON.parse(paste);
|
parsedElements = JSON.parse(paste);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue