Skip to content

Commit cf8d8ca

Browse files
committed
fix(react): remove unnecessary data field
1 parent 96b5d24 commit cf8d8ca

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sentry/react",
33
"version": "5.16.0",
4-
"description": "Offical Sentry SDK for Node.js",
4+
"description": "Offical Sentry SDK for React.js",
55
"repository": "git://github.com/getsentry/sentry-javascript.git",
66
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/react",
77
"author": "Sentry",

packages/react/src/profiler.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const getInitActivity = (componentDisplayName: string): number | null => {
4545
if (tracingIntegration !== null) {
4646
// tslint:disable-next-line:no-unsafe-any
4747
const activity = (tracingIntegration as any).constructor.pushActivity(componentDisplayName, {
48-
data: {},
4948
description: `<${componentDisplayName}>`,
5049
op: 'react',
5150
});

packages/react/test/profiler.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ describe('withProfiler', () => {
6161
create(<ProfiledComponent />);
6262
expect(mockPushActivity).toHaveBeenCalledTimes(1);
6363
expect(mockPushActivity).toHaveBeenLastCalledWith(UNKNOWN_COMPONENT, {
64-
data: {},
6564
description: `<${UNKNOWN_COMPONENT}>`,
6665
op: 'react',
6766
});

0 commit comments

Comments
 (0)