Skip to content

Commit

Permalink
Merge pull request #4063 from ProjectMirador/canvas-groupings-guard
Browse files Browse the repository at this point in the history
Only render the thumbnails if there are canvas groupings in the first place
  • Loading branch information
marlo-longley authored Dec 18, 2024
2 parents b709b7d + 816eef8 commit d5b1bc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ThumbnailNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export function ThumbnailNavigation({
role="grid"
>
<div role="row" style={{ height: '100%', width: '100%' }}>
{ canvasGroupings.length > 0 && (
<AutoSizer
defaultHeight={100}
defaultWidth={400}
Expand All @@ -186,6 +187,7 @@ export function ThumbnailNavigation({
</List>
)}
</AutoSizer>
)}
</div>
</Paper>
);
Expand Down

0 comments on commit d5b1bc9

Please sign in to comment.