Skip to content
Merged
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
Juice10 committed Mar 31, 2022
commit 39bf03ed83d3b40396a8ad6c0541662d73c89e56
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ function serializeNode(
} = options;
// Only record root id when document object is not the base document
let rootId: number | undefined;
const docId = nodeIdMap.get(n);
const docId = nodeIdMap.get(doc);
if (docId) {
rootId = docId === 1 ? undefined : docId;
}
Expand Down