Skip to content

Commit

Permalink
fix(ts): return Renderings (bracket -> parantheses). Add key.
Browse files Browse the repository at this point in the history
  • Loading branch information
crhallberg committed Jan 14, 2025
1 parent 48dcf17 commit 26a8c8f
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,13 @@ const DownloadDialogue = ({

return (
<>
{canvas.ranges?.map((range: Range) => {
{canvas.ranges?.map((range: Range, index) => (
<Renderings
resource={range}
defaultLabel={content.entireFileAsOriginal}
/>;
})}
key={`range-rendering-${String(index)}`}
/>
))}
</>
);
}
Expand All @@ -542,12 +543,13 @@ const DownloadDialogue = ({

return (
<>
{images.map((image: Annotation) => {
{images.map((image: Annotation, index) => (
<Renderings
resource={image.getResource()}
defaultLabel={content.entireFileAsOriginal}
/>;
})}
key={`image-rendering-${String(index)}`}
/>
))}
</>
);
}
Expand Down

0 comments on commit 26a8c8f

Please sign in to comment.