Make Todo notes use CRDT docs directly
This commit is contained in:
Vendored
+2
-2
@@ -65,7 +65,7 @@ export const encodeAutomergeFieldWrite = (value, type) => {
|
||||
if (isAutomergeFieldDoc(value)) {
|
||||
return saveAutomergeFieldDoc(value, type);
|
||||
}
|
||||
return createAutomergeFieldValue(value, type);
|
||||
throw new Error("CRDT field writes must use an Automerge document or Camino CRDT envelope");
|
||||
};
|
||||
export const normalizeAutomergeFieldValue = (value, type) => encodeAutomergeFieldWrite(value, type);
|
||||
export const materializeAutomergeFieldValue = (value, type) => loadAutomergeFieldDoc(value, type).value;
|
||||
@@ -80,4 +80,4 @@ export const mergeAutomergeFieldValues = ({ existing, incoming, type, }) => {
|
||||
materialized: mergedDoc.value,
|
||||
};
|
||||
};
|
||||
//# sourceMappingURL=crdt-automerge.js.map
|
||||
//# sourceMappingURL=crdt-automerge.js.map
|
||||
|
||||
Reference in New Issue
Block a user