Skip to content

Commit

Permalink
Merge pull request #51 from vivid-planet/send-scope-to-preview
Browse files Browse the repository at this point in the history
Send scope to preview
  • Loading branch information
RainbowBunchie authored Jun 18, 2024
2 parents 163fb19 + 6cf6252 commit 69c8cc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-bobcats-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/brevo-api": minor
---

Add scope to the preview state so it can be accessed in the preview page if necessary
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export function EmailCampaignForm({ id, EmailCampaignContentBlock, scope, previe

const previewState = {
emailCampaignId: id,
scope,
content: EmailCampaignContentBlock.createPreviewState(state.content, previewContext),
};

Expand Down

0 comments on commit 69c8cc6

Please sign in to comment.