Skip to content

Commit d5b1bc9

Browse files
Merge pull request #4063 from ProjectMirador/canvas-groupings-guard
Only render the thumbnails if there are canvas groupings in the first place
2 parents b709b7d + 816eef8 commit d5b1bc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/ThumbnailNavigation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export function ThumbnailNavigation({
167167
role="grid"
168168
>
169169
<div role="row" style={{ height: '100%', width: '100%' }}>
170+
{ canvasGroupings.length > 0 && (
170171
<AutoSizer
171172
defaultHeight={100}
172173
defaultWidth={400}
@@ -186,6 +187,7 @@ export function ThumbnailNavigation({
186187
</List>
187188
)}
188189
</AutoSizer>
190+
)}
189191
</div>
190192
</Paper>
191193
);

0 commit comments

Comments
 (0)