Skip to content

Commit

Permalink
chore(gatsby): Use argument for updating cache
Browse files Browse the repository at this point in the history
As suggested by @blainekasten in #20729 (review)
  • Loading branch information
pvdz committed Feb 11, 2020
1 parent 92ba5a2 commit 5f41562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/schema/node-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class LocalNodeModel {
* cached instead of a Set of Nodes.
*/
replaceTypeKeyValueCache(map = new Map()) {
this._typedKeyValueIndexes = new Map() // See redux/nodes.js for usage
this._typedKeyValueIndexes = map // See redux/nodes.js for usage
}

withContext(context) {
Expand Down

0 comments on commit 5f41562

Please sign in to comment.