|
@@ -655,7 +655,11 @@ class App extends React.Component<AppProps, AppState> {
|
655
|
655
|
const fileHandle = launchParams.files[0];
|
656
|
656
|
const blob: Blob = await fileHandle.getFile();
|
657
|
657
|
blob.handle = fileHandle;
|
658
|
|
- loadFromBlob(blob, this.state, this.scene.getElements())
|
|
658
|
+ loadFromBlob(
|
|
659
|
+ blob,
|
|
660
|
+ this.state,
|
|
661
|
+ this.scene.getElementsIncludingDeleted(),
|
|
662
|
+ )
|
659
|
663
|
.then(({ elements, appState }) =>
|
660
|
664
|
this.syncActionResult({
|
661
|
665
|
elements,
|
|
@@ -3814,7 +3818,7 @@ class App extends React.Component<AppProps, AppState> {
|
3814
|
3818
|
const { elements, appState } = await loadFromBlob(
|
3815
|
3819
|
file,
|
3816
|
3820
|
this.state,
|
3817
|
|
- this.scene.getElements(),
|
|
3821
|
+ this.scene.getElementsIncludingDeleted(),
|
3818
|
3822
|
);
|
3819
|
3823
|
this.syncActionResult({
|
3820
|
3824
|
elements,
|
|
@@ -3875,7 +3879,7 @@ class App extends React.Component<AppProps, AppState> {
|
3875
|
3879
|
};
|
3876
|
3880
|
|
3877
|
3881
|
loadFileToCanvas = (file: Blob) => {
|
3878
|
|
- loadFromBlob(file, this.state, this.scene.getElements())
|
|
3882
|
+ loadFromBlob(file, this.state, this.scene.getElementsIncludingDeleted())
|
3879
|
3883
|
.then(({ elements, appState }) =>
|
3880
|
3884
|
this.syncActionResult({
|
3881
|
3885
|
elements,
|