Make Todo notes use CRDT docs directly
This commit is contained in:
@@ -111,7 +111,9 @@ export const encodeAutomergeFieldWrite = (
|
||||
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 = (
|
||||
|
||||
Reference in New Issue
Block a user