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 cadc629 commit c4e9005Copy full SHA for c4e9005
packages/core/src/scope.ts
@@ -326,7 +326,7 @@ export class Scope {
326
*/
327
public setAttributes(newAttributes: Record<string, AttributeValueType | TypedAttributeValue>): this {
328
Object.entries(newAttributes).forEach(([key, value]) => {
329
- if (typeof value === 'object' && !Array.isArray(value)) {
+ if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
330
this._attributes[key] = value;
331
} else {
332
this._attributes[key] = attributeValueToTypedAttributeValue(value);
0 commit comments