Skip to content

Commit e2a1205

Browse files
committed
fix(ember): Drop undefined config values
It seems to trip something up somewhere when config is undefined, so we just remove these here to avoid this.
1 parent abd8b4d commit e2a1205

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ember/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
const fs = require('fs');
33
const crypto = require('crypto');
44

5+
const { dropUndefinedKeys } = require('@sentry/utils');
6+
57
function readSnippet(fileName) {
68
return fs.readFileSync(`${__dirname}/vendor/${fileName}`, 'utf8');
79
}
@@ -30,7 +32,7 @@ module.exports = {
3032
included() {
3133
const app = this._findHost();
3234
const config = app.project.config(app.env);
33-
const addonConfig = config['@sentry/ember'] || {};
35+
const addonConfig = dropUndefinedKeys(config['@sentry/ember'] || {});
3436

3537
if (!isSerializable(addonConfig)) {
3638
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)