@abraca/dabra 1.3.3 → 1.3.4
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.
|
@@ -10897,8 +10897,9 @@ var E2EAbracadabraProvider = class E2EAbracadabraProvider extends AbracadabraPro
|
|
|
10897
10897
|
function attachUpdatedAtObserver(treeMap, childDocId, childDoc, offlineStore) {
|
|
10898
10898
|
function handler(update, origin) {
|
|
10899
10899
|
if (offlineStore !== null && origin === offlineStore) return;
|
|
10900
|
-
const
|
|
10901
|
-
if (!
|
|
10900
|
+
const raw = treeMap.get(childDocId);
|
|
10901
|
+
if (!raw) return;
|
|
10902
|
+
const entry = raw instanceof yjs.Map ? raw.toJSON() : raw;
|
|
10902
10903
|
treeMap.set(childDocId, {
|
|
10903
10904
|
...entry,
|
|
10904
10905
|
updatedAt: Date.now()
|