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

Commit 377263a

Browse files
committed
add check to fix #130
1 parent 642c480 commit 377263a

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)