mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix undoOnce (#332)
I just pasted @enzoferey's implementation and it fixed the bug reported by @dwelle Fixes #307
This commit is contained in:
parent
dd2a7eb597
commit
44657efe71
2 changed files with 9 additions and 9 deletions
|
@ -256,7 +256,7 @@ export class App extends React.Component<{}, AppState> {
|
|||
}
|
||||
} else {
|
||||
// undo action
|
||||
const data = history.undoOnce(elements);
|
||||
const data = history.undoOnce();
|
||||
if (data !== null) {
|
||||
elements = data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue