Skip to content

Conversation

@latekvo
Copy link
Member

@latekvo latekvo commented Dec 16, 2025

The onReferenceInChat callback already contains a guard against inspectedItems being empty, but the same guard wasn't applied to the rendering logic. This PR fixes that, which resolves #1812.

Fixes #1812

How Has This Been Tested:

  • Hard-set inspectedItems to []
  • Neither button renders - as expected
Before After
image image

How Has This Change Been Documented:

Not applicable

@vercel

This comment was marked as spam.

This comment was marked as resolved.

@latekvo latekvo merged commit f5c9fc6 into main Dec 17, 2025
15 checks passed
@latekvo latekvo deleted the @latekvo/fix-element-inspector-visible-when-empty branch December 17, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Reference in chat" inspector button appears when no component data is available

3 participants