From 2cd4c2bd54952f11dc4b05951fbb134d431edc84 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Fri, 22 May 2026 17:26:23 -0500 Subject: [PATCH] Fix image upload cleanup refs --- app/forms/image-upload.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/forms/image-upload.tsx b/app/forms/image-upload.tsx index f47d8b673..d434ae4cc 100644 --- a/app/forms/image-upload.tsx +++ b/app/forms/image-upload.tsx @@ -508,7 +508,9 @@ export default function ImageCreate() { // now delete the snapshot and the disk. don't use cleanup() because that // uses different mutations await deleteSnapshot.mutateAsync({ path: { snapshot: snapshot.current.id } }) + snapshot.current = null await deleteDisk.mutateAsync({ path: { disk: disk.current.id } }) + disk.current = null setAllDone(true) }