hyperdx/.changeset/sharp-emus-reflect.md
Drew Davis cc714f909a
fix: Skip rendering empty SQL dashboard filter (#2115)
## Summary

This PR fixes a bug causing the $__filters macro to error when the dashboard's global SQL filter is an empty string or whitespace only.

### Screenshots or video

Before: an empty string in the SQL filter box would cause $__filters to render as `(())`

<img width="1708" height="1042" alt="Screenshot 2026-04-14 at 1 29 41 PM" src="https://github.com/user-attachments/assets/0a4068ad-eaf2-4bf7-b894-b796f642b59a" />


After: the empty SQL filter is ignored

<img width="2330" height="520" alt="Screenshot 2026-04-14 at 1 29 20 PM" src="https://github.com/user-attachments/assets/a1e83091-5522-4745-b717-f1bf51c84a80" />


### How to test locally or on Vercel

This can be tested in the preview environment

### References



- Linear Issue: Closes HDX-4017
- Related PRs:
2026-04-14 20:04:58 +00:00

87 B

@hyperdx/common-utils
patch

fix: Skip rendering empty SQL dashboard filter