oops, pluck needs new object to go into

This commit is contained in:
Mark Nadal 2021-07-08 14:37:24 -07:00
parent ead5893dfb
commit 4f41129028

2
gun.js
View File

@ -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.