From fb3636852b5fc0fcea7ec535cdcb40bb5cd607d0 Mon Sep 17 00:00:00 2001 From: Peter van der Zee <209817+pvdz@users.noreply.github.com> Date: Tue, 11 Feb 2020 13:13:48 +0100 Subject: [PATCH] fix(gatsby): Use argument for updating cache (#21365) As suggested by @blainekasten in https://github.com/gatsbyjs/gatsby/pull/20729#pullrequestreview-350948674 --- packages/gatsby/src/schema/node-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby/src/schema/node-model.js b/packages/gatsby/src/schema/node-model.js index b9815766c582b..197a9f42e1dae 100644 --- a/packages/gatsby/src/schema/node-model.js +++ b/packages/gatsby/src/schema/node-model.js @@ -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) {