Skip to content

Commit 1c095b1

Browse files
authored
Check atom exists in graph when deciding to read from disk (#1371)
1 parent faff9ef commit 1c095b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/store.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Gun.on('create', function(root){
6666
if((tmp = (root.next||'')[soul]) && tmp.put){
6767
if(o.atom){
6868
tmp = (tmp.next||'')[o.atom] ;
69-
if(tmp && tmp.rad){ return }
69+
if(tmp && tmp.root && tmp.root.graph && tmp.root.graph[soul] && tmp.root.graph[soul][o.atom]){ return }
7070
} else
7171
if(tmp && tmp.rad){ return }
7272
}

0 commit comments

Comments
 (0)