Skip to content

Commit 5d3fe62

Browse files
authored
Merge pull request #165 from taion/component-invariant
Improve invariant for missing component
2 parents 7fc66ce + 5559e81 commit 5d3fe62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryAggregator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class QueryAggregator {
7474
Relay.isContainer(component),
7575
'relay-router-relay: Route with queries specifies component `%s` ' +
7676
'that is not a Relay container.',
77-
component.displayName || component.name
77+
component && (component.displayName || component.name)
7878
);
7979

8080
Object.keys(queries).forEach(queryName => {

0 commit comments

Comments
 (0)