mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-12 00:34:21 +01:00
fix: Scene deleted after pica image resize failure (#9879)
Revert change in private updateImageCache
This commit is contained in:
@@ -10144,7 +10144,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
if (erroredFiles.size) {
|
if (erroredFiles.size) {
|
||||||
this.store.scheduleAction(CaptureUpdateAction.NEVER);
|
this.store.scheduleAction(CaptureUpdateAction.NEVER);
|
||||||
this.scene.replaceAllElements(
|
this.scene.replaceAllElements(
|
||||||
elements.map((element) => {
|
this.scene.getElementsIncludingDeleted().map((element) => {
|
||||||
if (
|
if (
|
||||||
isInitializedImageElement(element) &&
|
isInitializedImageElement(element) &&
|
||||||
erroredFiles.has(element.fileId)
|
erroredFiles.has(element.fileId)
|
||||||
|
|||||||
Reference in New Issue
Block a user