From 1c095b13e9226c3090a17f0e7d5bf41b82926abc Mon Sep 17 00:00:00 2001 From: Malcolm Blaney Date: Fri, 5 Apr 2024 04:01:15 +1000 Subject: [PATCH] Check atom exists in graph when deciding to read from disk (#1371) --- lib/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/store.js b/lib/store.js index f86634bf7..8c567a548 100644 --- a/lib/store.js +++ b/lib/store.js @@ -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 } }