mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: include deleted elements when passing to restore (#3802)
This commit is contained in:
parent
e3e967421e
commit
55d3287abf
1 changed files with 7 additions and 3 deletions
|
@ -655,7 +655,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||
const fileHandle = launchParams.files[0];
|
||||
const blob: Blob = await fileHandle.getFile();
|
||||
blob.handle = fileHandle;
|
||||
loadFromBlob(blob, this.state, this.scene.getElements())
|
||||
loadFromBlob(
|
||||
blob,
|
||||
this.state,
|
||||
this.scene.getElementsIncludingDeleted(),
|
||||
)
|
||||
.then(({ elements, appState }) =>
|
||||
this.syncActionResult({
|
||||
elements,
|
||||
|
@ -3814,7 +3818,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
const { elements, appState } = await loadFromBlob(
|
||||
file,
|
||||
this.state,
|
||||
this.scene.getElements(),
|
||||
this.scene.getElementsIncludingDeleted(),
|
||||
);
|
||||
this.syncActionResult({
|
||||
elements,
|
||||
|
@ -3875,7 +3879,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
};
|
||||
|
||||
loadFileToCanvas = (file: Blob) => {
|
||||
loadFromBlob(file, this.state, this.scene.getElements())
|
||||
loadFromBlob(file, this.state, this.scene.getElementsIncludingDeleted())
|
||||
.then(({ elements, appState }) =>
|
||||
this.syncActionResult({
|
||||
elements,
|
||||
|
|
Loading…
Add table
Reference in a new issue