Skip to content

Commit

Permalink
fix: props undefined access (#1864)
Browse files Browse the repository at this point in the history
fix: props undefiend access
  • Loading branch information
diegomura authored Jun 5, 2022
1 parent eecddbd commit 205aa03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-dodos-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@react-pdf/render': patch
---

fix: props undefiend access
2 changes: 1 addition & 1 deletion packages/render/src/primitives/renderDebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const debugOrigin = (ctx, node) => {
};

const renderDebug = (ctx, node) => {
if (!node.props.debug) return;
if (!node.props?.debug) return;

ctx.save();

Expand Down

0 comments on commit 205aa03

Please sign in to comment.