Skip to content

Commit 400dbb2

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

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
@@ -47,7 +47,7 @@ export function flattenAttributes(
4747
}
4848

4949
// Add object to seen set
50-
if (typeof obj === "object") {
50+
if (obj !== null && typeof obj === "object") {
5151
seen.add(obj);
5252
}
5353

0 commit comments

Comments
 (0)