Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fixes clearing out draft

Ian MacCallumb81473e3085e
diff --git a/apps/web/ui/partners/groups/design/branding-form.tsx b/apps/web/ui/partners/groups/design/branding-form.tsx
index 88405021a0..f49fd22081 100644
--- a/apps/web/ui/partners/groups/design/branding-form.tsx
+++ b/apps/web/ui/partners/groups/design/branding-form.tsx
@@ -330,9 +330,10 @@ function BrandingFormInner({
if (!result?.data?.success) {
toast.error("Failed to update application form.");
setError("root", { message: "Failed to update application form." });
- setDraft(null);
return;
}
+
+ setDraft(null);
})}
className="overflow-hidden rounded-lg border border-neutral-200 bg-neutral-100"
>