fix: Scene deleted after pica image resize failure (#9879)

Revert change in private updateImageCache
This commit is contained in:
zsviczian
2025-08-18 11:45:05 +02:00
committed by GitHub
parent 2535d73054
commit c6f8ef9ad2

View File

@@ -10144,7 +10144,7 @@ class App extends React.Component<AppProps, AppState> {
if (erroredFiles.size) {
this.store.scheduleAction(CaptureUpdateAction.NEVER);
this.scene.replaceAllElements(
elements.map((element) => {
this.scene.getElementsIncludingDeleted().map((element) => {
if (
isInitializedImageElement(element) &&
erroredFiles.has(element.fileId)