Skip to content

Commit

Permalink
Check atom exists in graph when deciding to read from disk (#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
mblaney committed Apr 4, 2024
1 parent faff9ef commit 1c095b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/store.js
Expand Up @@ -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 }
}
Expand Down

0 comments on commit 1c095b1

Please sign in to comment.