mirror of
https://github.com/outline/outline.git
synced 2026-11-29 00:29:36 +03:00
Merge pull request #315 from jorilallo/jori/bugsnag-user-data
Added metadata to Bugsnag if it's defined
This commit is contained in:
commit
af031d33ab
1 file changed
+9
@@ -73,6 +73,15 @@ const Auth = ({ children }: AuthProps) => {
|
||||
}),
|
||||
};
|
||||
|
||||
if (window.Bugsnag) {
|
||||
Bugsnag.user = {
|
||||
id: user.id,
|
||||
name: user.name,
|
||||
teamId: team.id,
|
||||
team: team.name,
|
||||
};
|
||||
}
|
||||
|
||||
authenticatedStores.collections.fetchAll();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user