fix: Table chart click query formatting (#167)

This commit is contained in:
Shorpo 2023-12-30 12:09:24 -07:00 committed by GitHub
parent 72164a64a8
commit 6d3cdae914
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@hyperdx/app': patch
---
Fix table chart link query formatting

View file

@ -270,7 +270,11 @@ const HDXTableChart = memo(
}
return (row?: { group: string }) => {
const qparams = new URLSearchParams({
q: where + (groupBy ? ` ${groupBy}:${row?.group || '*'}` : ''),
q:
where +
(groupBy
? ` ${groupBy}:${row?.group ? `"${row.group}"` : '*'}`
: ''),
from: `${dateRange[0].getTime()}`,
to: `${dateRange[1].getTime()}`,
});