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