We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49182eb commit b360e4bCopy full SHA for b360e4b
packages/core/src/scope.ts
@@ -328,7 +328,7 @@ export class Scope {
328
*/
329
public setAttributes(newAttributes: Record<string, AttributeValueType | TypedAttributeValue>): this {
330
Object.entries(newAttributes).forEach(([key, value]) => {
331
- if (typeof value === 'object' && !Array.isArray(value)) {
+ if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
332
this._attributes[key] = value;
333
} else {
334
this._attributes[key] = attributeValueToTypedAttributeValue(value);
0 commit comments