mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
if prev value would have caused unlink, do not unlink again.
This commit is contained in:
parent
84ebb5901b
commit
5814a75442
1
gun.js
1
gun.js
@ -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 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user