Skip to content

Commit 316f030

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 316f030

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ember/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
const fs = require('fs');
33
const crypto = require('crypto');
4+
const { dropUndefinedKeys } = require('@sentry/utils');
45

56
function readSnippet(fileName) {
67
return fs.readFileSync(`${__dirname}/vendor/${fileName}`, 'utf8');
@@ -30,7 +31,7 @@ module.exports = {
3031
included() {
3132
const app = this._findHost();
3233
const config = app.project.config(app.env);
33-
const addonConfig = config['@sentry/ember'] || {};
34+
const addonConfig = dropUndefinedKeys(config['@sentry/ember'] || {});
3435

3536
if (!isSerializable(addonConfig)) {
3637
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)