Skip to content

Commit

Permalink
Merge branch 'develop' into docs/logging
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser authored Oct 25, 2023
2 parents 4c75f49 + f08a295 commit 2fe9386
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-trees-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/admin-ui": patch
---

fix(admin-ui): fix analytics config not being saved in invite form
4 changes: 3 additions & 1 deletion packages/admin-ui/ui/src/pages/invite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ const InvitePage = () => {
!data.analytics.opt_out &&
token?.user_email

if (isFeatureEnabled("analytics")) {
try {
await createAnalyticsConfig(data.analytics)
} catch (e) {
// gracefully handle error if analytics are disabled
}

if (shouldTrackEmail) {
Expand Down

0 comments on commit 2fe9386

Please sign in to comment.