Skip to content

Commit e5bbdb0

Browse files
committed
ref: simplify meta type check in syncMirrorAttributesFromMutationEvent function
1 parent 87e886b commit e5bbdb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/replay-internal/src/util/handleRecordingEmit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export function syncMirrorAttributesFromMutationEvent(event: RecordingEvent): vo
139139
const node = record.mirror.getNode(mutation.id);
140140
const meta = node && record.mirror.getMeta(node);
141141

142-
if (!meta || meta.type !== NodeType.Element) {
142+
if (meta?.type !== NodeType.Element) {
143143
continue;
144144
}
145145

0 commit comments

Comments
 (0)