Skip to content

Commit ecf2bc1

Browse files
ericnogralesHazAT
authored andcommitted
adds fix for attachProps, it always evaluates true (getsentry#1956)
1 parent 29a12a3 commit ecf2bc1

File tree

1 file changed

+4
-2
lines changed
  • packages/integrations/src

1 file changed

+4
-2
lines changed

packages/integrations/src/vue.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@ export class Vue implements Integration {
3232
* When set to false, Sentry will suppress reporting all props data
3333
* from your Vue components for privacy concerns.
3434
*/
35-
private readonly _attachProps: boolean;
35+
private readonly _attachProps: boolean = true;
3636

3737
/**
3838
* @inheritDoc
3939
*/
4040
public constructor(options: { Vue?: any; attachProps?: boolean } = {}) {
4141
// tslint:disable-next-line: no-unsafe-any
4242
this._Vue = options.Vue || getGlobalObject().Vue;
43-
this._attachProps = options.attachProps || true;
43+
if (options.attachProps === false) {
44+
this._attachProps = false;
45+
}
4446
}
4547

4648
/** JSDoc */

0 commit comments

Comments
 (0)