From 4f41129028d942119651726048e995ae0d8ad0a3 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Thu, 8 Jul 2021 14:37:24 -0700 Subject: [PATCH] oops, pluck needs new object to go into --- gun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gun.js b/gun.js index 0339e74d..4d30e37c 100644 --- a/gun.js +++ b/gun.js @@ -442,7 +442,7 @@ if(!node){ return root.on('get', msg) } if(has){ if('string' != typeof has || u === node[has]){ return root.on('get', msg) } - node = state_ify(node, has, state_is(node, has), node[has]); + node = state_ify({}, has, state_is(node, has), node[has]); // If we have a key in-memory, do we really need to fetch? // Maybe... in case the in-memory key we have is a local write // we still need to trigger a pull/merge from peers.