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) }