Skip to content

Commit 205aa03

Browse files
authored
fix: props undefined access (#1864)
fix: props undefiend access
1 parent eecddbd commit 205aa03

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/fuzzy-dodos-compete.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@react-pdf/render': patch
3+
---
4+
5+
fix: props undefiend access

packages/render/src/primitives/renderDebug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const debugOrigin = (ctx, node) => {
176176
};
177177

178178
const renderDebug = (ctx, node) => {
179-
if (!node.props.debug) return;
179+
if (!node.props?.debug) return;
180180

181181
ctx.save();
182182

0 commit comments

Comments
 (0)