fix: gate eraser canvas on previewLoading for exotic formats

This commit is contained in:
SnapOtter
2026-05-13 13:37:57 +08:00
parent 09d494d87d
commit bfffe8a6bd
+7 -1
View File
@@ -494,7 +494,13 @@ export function ToolPage() {
);
}
if (displayMode === "interactive-eraser" && hasFile && !hasProcessed && originalBlobUrl) {
if (
displayMode === "interactive-eraser" &&
hasFile &&
!hasProcessed &&
originalBlobUrl &&
!currentEntry?.previewLoading
) {
return (
<EraserCanvas
ref={eraserRef}