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.

Update campaign-editor.tsx

Kiran K4883613df6bc
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx
index 9b316b3be0..fdbfafba7e 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-editor.tsx
@@ -329,7 +329,7 @@ export function CampaignEditor({ campaign }: { campaign: Campaign }) {
onSave={() => saveCampaign({ isDraft: false })}
isSaving={isSavingCampaign}
onReset={() => {
- editorRef.current?.setContent(getValues("bodyJson"));
+ editorRef.current?.setContent(campaign.bodyJson);
}}
/>
</PageContentWithSidePanel>