Skip to content

Commit c7b7496

Browse files
committed
fix: resolve attachments
1 parent fe37476 commit c7b7496

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/ninety-trainers-sit.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-pdf/textkit": patch
3+
---
4+
5+
fix: resolve attachments

packages/textkit/src/layout/resolveAttachments.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const resolveRunAttachments = (run: Run) => {
1616
const glyphs = run.glyphs || [];
1717
const attachment = run.attributes?.attachment;
1818

19-
if (!attachment) return;
19+
if (!attachment) return run;
2020

2121
const positions = run.positions.map((position, i) => {
2222
const glyph = glyphs[i];

0 commit comments

Comments
 (0)