Skip to content

Commit

Permalink
FIX flatClone _meta before mutating
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Jul 18, 2022
1 parent 40c9237 commit 03ac2e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/replication/downstream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import type {
import {
createRevision,
ensureNotFalsy,
flatClone,
getDefaultRevision,
getDefaultRxDocumentMeta,
now,
Expand Down Expand Up @@ -339,7 +340,7 @@ export function startReplicationDownstream<RxDocType, CheckpointType = any>(
{},
masterState,
forkStateFullDoc ? {
_meta: forkStateFullDoc._meta,
_meta: flatClone(forkStateFullDoc._meta),
_attachments: {},
_rev: getDefaultRevision()
} : {
Expand Down

0 comments on commit 03ac2e7

Please sign in to comment.