Skip to content

Commit

Permalink
fix lints in OperationExecutor
Browse files Browse the repository at this point in the history
Reviewed By: rbalicki2

Differential Revision: D36905286

fbshipit-source-id: 5b5e70f03cb1d57fe488911ea668eb743f327f25
  • Loading branch information
mroch authored and facebook-github-bot committed Jun 3, 2022
1 parent 82d0f0e commit 90b4226
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/relay-runtime/store/OperationExecutor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1475,11 +1475,8 @@ class Executor<TMutation: MutationParameters> {
// Determine the __id of the new item: this must equal the value that would
// be assigned had the item not been streamed
const itemID =
// https://github.com/prettier/prettier/issues/6403
// prettier-ignore
(this._getDataID(data, typeName) ??
// $FlowFixMe[sketchy-null-string]
(prevIDs && prevIDs[itemIndex])) || // Reuse previously generated client IDs
this._getDataID(data, typeName) ??
prevIDs?.[itemIndex] ?? // Reuse previously generated client IDs
generateClientID(parentID, storageKey, itemIndex);
invariant(
typeof itemID === 'string',
Expand Down

0 comments on commit 90b4226

Please sign in to comment.