Skip to content

Commit

Permalink
Merge pull request #1426 from bugsnag/bengourley/rn-codebundleid-default
Browse files Browse the repository at this point in the history
fix(react-native): Only include codeBundleId in payload when it has a value
  • Loading branch information
bengourley committed Jun 7, 2021
2 parents b7b8f5e + 9a7ad89 commit d7f4adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ module.exports.schema = {
defaultValue: () => getPrefixedConsole()
},
codeBundleId: {
defaultValue: () => null,
defaultValue: () => undefined,
message: 'should be a string',
validate: val => (val === null || stringWithLength(val))
validate: val => (val === undefined || stringWithLength(val))
},
enabledErrorTypes: {
...schema.enabledErrorTypes,
Expand Down

0 comments on commit d7f4adf

Please sign in to comment.