Skip to content
Snippets Groups Projects
Commit 85b04295 authored by Chris Beer's avatar Chris Beer
Browse files

Guard against missing canvas groupings; fixes #3437

parent 5ba18bb6
Branches
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ export class ThumbnailNavigation extends Component { ...@@ -69,7 +69,7 @@ export class ThumbnailNavigation extends Component {
*/ */
calculateScaledSize(index) { calculateScaledSize(index) {
const { thumbnailNavigation, canvasGroupings, position } = this.props; const { thumbnailNavigation, canvasGroupings, position } = this.props;
const canvases = canvasGroupings[index]; const canvases = canvasGroupings[index] || [];
const world = new CanvasWorld(canvases); const world = new CanvasWorld(canvases);
const bounds = world.worldBounds(); const bounds = world.worldBounds();
switch (position) { switch (position) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment