Skip to content

Commit

Permalink
fix(replayer): <style> node rules attr can be undefined (#162)
Browse files Browse the repository at this point in the history
Not sure why this happens.
Fixes JAVASCRIPT-2P6F
  • Loading branch information
billyvg authored Jan 31, 2024
1 parent c79619f commit 0b0e26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/replay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@ export class Replayer {
else if (d.id)
(
this.virtualDom.mirror.getNode(d.id) as RRStyleElement | null
)?.rules.push(d);
)?.rules?.push(d);
} else this.applyStyleSheetMutation(d);
break;
}
Expand Down

0 comments on commit 0b0e26d

Please sign in to comment.