Skip to content

Commit

Permalink
Merge pull request #165 from taion/component-invariant
Browse files Browse the repository at this point in the history
Improve invariant for missing component
  • Loading branch information
taion authored Jun 19, 2016
2 parents 7fc66ce + 5559e81 commit 5d3fe62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryAggregator.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class QueryAggregator {
Relay.isContainer(component),
'relay-router-relay: Route with queries specifies component `%s` ' +
'that is not a Relay container.',
component.displayName || component.name
component && (component.displayName || component.name)
);

Object.keys(queries).forEach(queryName => {
Expand Down

0 comments on commit 5d3fe62

Please sign in to comment.