Skip to content

Commit e58686c

Browse files
Update packages/core/src/v3/utils/flattenAttributes.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent b29ba40 commit e58686c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/v3/utils/flattenAttributes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function flattenAttributes(
4141
}
4242

4343
// Check for circular reference
44-
if (typeof obj === "object" && seen.has(obj)) {
44+
if (obj !== null && typeof obj === "object" && seen.has(obj)) {
4545
result[prefix || ""] = CIRCULAR_REFERENCE_SENTINEL;
4646
return result;
4747
}

0 commit comments

Comments
 (0)