Skip to content

Commit

Permalink
Check atom exists in graph when deciding to read from disk
Browse files Browse the repository at this point in the history
  • Loading branch information
mblaney committed Apr 4, 2024
1 parent faff9ef commit 30248a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/store.js
Original file line number Diff line number Diff line change
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 30248a8

Please sign in to comment.