Fix: Dont set empty arrays as user properties (#3007)

This commit is contained in:
Mike
2024-09-16 14:49:49 +02:00
committed by GitHub
parent 2fb25d1379
commit 8eeddad57b
@@ -243,7 +243,10 @@ onWorkspaceResult((result) => {
const workspaceIds = result.data.activeUser.workspaces.items.map(
(workspace) => workspace.id
)
mixpanel.people.set('workspace_id', workspaceIds)
if (workspaceIds.length > 0) {
mixpanel.people.set('workspace_id', workspaceIds)
}
}
})
</script>