Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 382b519

Browse files
committed
Merge pull request #115 from facebook/immutable-js-warn
fix #106 immutablejs warnings about length
2 parents 8e3e128 + 0b9e822 commit 382b519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/dehydrate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ function dehydrate(data: Object, cleaned: Array<Array<string>>, path?: Array<str
5555
return {
5656
type: Array.isArray(data) ? 'array' : 'object',
5757
name: data.constructor.name === 'Object' ? '' : data.constructor.name,
58-
meta: {
58+
meta: Array.isArray(data) ? {
5959
length: data.length,
60-
},
60+
} : null,
6161
};
6262
}
6363
if (Array.isArray(data)) {

0 commit comments

Comments
 (0)