Check atom exists in graph when deciding to read from disk (#1371)

This commit is contained in:
Malcolm Blaney 2024-04-05 04:01:15 +10:00 committed by GitHub
parent faff9efaca
commit 1c095b13e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ Gun.on('create', function(root){
if((tmp = (root.next||'')[soul]) && tmp.put){
if(o.atom){
tmp = (tmp.next||'')[o.atom] ;
if(tmp && tmp.rad){ return }
if(tmp && tmp.root && tmp.root.graph && tmp.root.graph[soul] && tmp.root.graph[soul][o.atom]){ return }
} else
if(tmp && tmp.rad){ return }
}