Skip to content

fix: hide data queried dropdown when empty#1604

Merged
charlesvien merged 1 commit into
PostHog:mainfrom
reverb256:fix/1574-hide-empty-data-queried
Apr 13, 2026
Merged

fix: hide data queried dropdown when empty#1604
charlesvien merged 1 commit into
PostHog:mainfrom
reverb256:fix/1574-hide-empty-data-queried

Conversation

@reverb256
Copy link
Copy Markdown
Contributor

Problem

Fixes #1574

The "Data queried" collapsible button shows up even when there is no data queried, because whitespace-only or empty strings pass the falsy check.

Solution

Changed if (!text) return null to if (!text.trim()) return null in DataQueriedCollapsible. This hides the dropdown when the content is empty, whitespace-only, or undefined.

Files Changed

  • apps/code/src/renderer/features/inbox/components/detail/SignalCard.tsx — 1 line changed

The DataQueriedCollapsible component would show the 'Data queried'
button even for whitespace-only content. Now trims before checking.
@charlesvien charlesvien force-pushed the fix/1574-hide-empty-data-queried branch from 8c4a0a2 to c468799 Compare April 13, 2026 20:21
@charlesvien charlesvien enabled auto-merge (squash) April 13, 2026 20:24
@charlesvien charlesvien merged commit eaa2adb into PostHog:main Apr 13, 2026
15 checks passed
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.

hide "data queried" when there was no data queried

2 participants