Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): prevent duplicate success toast on disk upgrade (#48097)

Ali Waseem620c9329cf66
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx
index 742568c4b5c..778a790c325 100644
--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementForm.tsx
@@ -301,9 +301,10 @@ export function DiskManagementForm() {
setIsDialogOpen(false)
form.reset(data as DiskStorageSchemaType)
- toast.success(
- `Successfully updated disk settings!${willUpdateDiskConfiguration ? ' The requested changes will be applied to your disk shortly.' : ''}`
- )
+ // Disk resizes get their own completion toast once polling confirms it's applied
+ if (!willUpdateDiskConfiguration) {
+ toast.success('Successfully updated disk settings!')
+ }
} catch (error: unknown) {
setMessageState({
message: error instanceof Error ? error.message : 'An unknown error occurred',