braidfs 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -711,7 +711,8 @@ async function sync_url(url) {
|
|
|
711
711
|
// then we can just remove those
|
|
712
712
|
// and add event
|
|
713
713
|
var fork_set = new Set(self.fork_point)
|
|
714
|
-
if (parents.
|
|
714
|
+
if (parents.length &&
|
|
715
|
+
parents.every(p => fork_set.has(p))) {
|
|
715
716
|
parents.forEach(p => fork_set.delete(p))
|
|
716
717
|
fork_set.add(event)
|
|
717
718
|
self.fork_point = [...fork_set.values()]
|