Skip to content

Commit 1b7d5b8

Browse files
committed
Remove check for React.isValidElement
1 parent b6cbd90 commit 1b7d5b8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/formatter/sortObject.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ function safeSortObject(value: any, seen: WeakSet<any>): any {
77
return value;
88
}
99

10-
// return date, regexp and react element values as is
11-
if (
12-
value instanceof Date ||
13-
value instanceof RegExp ||
14-
React.isValidElement(value)
15-
) {
10+
// return date and regexp values as is
11+
if (value instanceof Date || value instanceof RegExp) {
1612
return value;
1713
}
1814

0 commit comments

Comments
 (0)