Skip to content

Commit

Permalink
Merge pull request #6 from gravity-ui/fix_minimap_crashes
Browse files Browse the repository at this point in the history
fix(Minimap): fix crashes when block has no viewComponent
  • Loading branch information
Antamansid authored Oct 10, 2024
2 parents 0d53e16 + 78e3186 commit 2ba3406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/minimap/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class MiniMapLayer extends Layer<MiniMapLayerProps, MiniMapLayerContext>
blocks.forEach((block) => {
const viewComponent = block.getViewComponent();

viewComponent.renderMinimalisticBlock(this.context.ctx);
viewComponent?.renderMinimalisticBlock(this.context.ctx);
});
}

Expand Down

0 comments on commit 2ba3406

Please sign in to comment.