Skip to content

Blanked out when rendering attachment without a registered renderer #3294

@compulim

Description

@compulim

Screenshots

image

Version

master branch

Describe the bug

When an attachment is being rendered without any renderer, an error box (a.k.a. red box) should show up.

Instead, it blanked out with a JavaScript error in the console.

Steps to reproduce

  1. Go to 01.a.full-bundle
  2. Type github:sample-repository

Expected behavior

A red box to show up and say "No renderer for this attachment".

image

Additional context

In recent save/restore scroll position PR, we modified the createXxxRenderer and missed importing React.

[Bug]

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions