fix(ui): canvas image error placeholder never disappears

This commit is contained in:
psychedelicious
2025-02-11 10:49:18 +11:00
parent b75d08a2d0
commit b224cc8158

View File

@@ -123,11 +123,11 @@ export class CanvasStagingAreaModule extends CanvasModuleBase {
hideProgressIfSameSession();
} else if (this.image.isLoading) {
// noop - just wait for the image to load
} else if (this.image.isError) {
hideProgressIfSameSession();
} else if (this.image.state.image.image_name !== image.image_name) {
await this.image.update({ ...this.image.state, image }, true);
hideProgressIfSameSession();
} else if (this.image.isError) {
hideProgressIfSameSession();
}
this.image.konva.group.visible(shouldShowStagedImage);
} else {