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

Commit c5bba28

Browse files
committed
Merge pull request #131 from jaredly/fix-130
add check to fix #130
2 parents ec7aaa3 + 377263a commit c5bba28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/getData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getData(element: Object): DataType {
5757
name = element.getName();
5858
// 0.14 top-level wrapper
5959
// TODO(jared): The backend should just act as if these don't exist.
60-
if (element._currentElement.props === element._renderedComponent._currentElement) {
60+
if (element._renderedComponent && element._currentElement.props === element._renderedComponent._currentElement) {
6161
nodeType = 'Wrapper';
6262
}
6363
if (name === null) {

0 commit comments

Comments
 (0)