if prev value would have caused unlink, do not unlink again.

This commit is contained in:
Mark Nadal 2021-04-10 04:11:39 -07:00
parent 84ebb5901b
commit 5814a75442

1
gun.js
View File

@ -753,6 +753,7 @@
// TODO: Implement some logic here for changing links.
return
}
if(cat.has && true === valid(cat.put) && !(root.pass||'')[cat.id]){ return } // if the previous value would have caused an unlink, we do not need to unlink again. Except for annoying passes edge case.
//console.log("unlinking:", cat.id, cat.get, msg, link, cat, '?', change, cat.put);
//if(true === link){
//if(u === cat.link && u !== change){ return }