Skip to content

Commit

Permalink
Resolve issue 102 by testing both component and its instance (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfr0g authored and wyattdanger committed Apr 15, 2016
1 parent 6dbbbed commit 6fbe9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ var logWarning = (component, failureInfo, options) => {
console.warn.apply(console, warning);
};

if (includeSrcNode && component)
if (includeSrcNode && component && component._instance)
// Cannot log a node reference until the component is in the DOM,
// so defer the document.getElementById call until componentDidMount
// or componentDidUpdate.
Expand Down

0 comments on commit 6fbe9b3

Please sign in to comment.