Skip to content

Commit

Permalink
fix(Request): operation.name as request id
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Nov 8, 2017
1 parent 43de656 commit 2d0c2e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RelayRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class RelayRequest {
this.cacheConfig = cacheConfig;
this.uploadables = uploadables;

this.id = this.operation.id || this._generateID();
this.id = this.operation.id || this.operation.name || this._generateID();

this.fetchOpts = {
method: 'POST',
Expand Down Expand Up @@ -70,7 +70,7 @@ export default class RelayRequest {
}

getID(): string {
return this.id || this.operation.name;
return this.id;
}

_generateID(): string {
Expand Down

0 comments on commit 2d0c2e7

Please sign in to comment.