fix(admin-ui): fix analytics config not being saved in invite form (#5467)
This commit is contained in:
5
.changeset/fuzzy-trees-push.md
Normal file
5
.changeset/fuzzy-trees-push.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/admin-ui": patch
|
||||
---
|
||||
|
||||
fix(admin-ui): fix analytics config not being saved in invite form
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user