fix: removed originalWhere from SurroundingContext tags (#740)

This commit is contained in:
Aaron Knudtson 2025-04-07 17:01:05 -04:00 committed by GitHub
parent 8d8a50afdf
commit db761ba150
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 9 deletions

View file

@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---
fix: remove originalWhere tag from view. not used anyways

View file

@ -41,10 +41,8 @@ export default function ContextSubpanel({
}: ContextSubpanelProps) {
const QUERY_KEY_PREFIX = 'context';
const { Timestamp: origTimestamp } = rowData;
const {
where: originalWhere = '',
whereLanguage: originalLanguage = 'lucene',
} = dbSqlRowTableConfig ?? {};
const { whereLanguage: originalLanguage = 'lucene' } =
dbSqlRowTableConfig ?? {};
const [range, setRange] = useState<number>(ms('30s'));
const [contextBy, setContextBy] = useState<ContextBy>(ContextBy.All);
const { control, watch } = useForm({
@ -234,11 +232,6 @@ export default function ContextSubpanel({
{contextBy}:{CONTEXT_MAPPING[contextBy].value}
</Badge>
)}
{originalWhere && (
<Badge size="md" variant="default">
{originalWhere}
</Badge>
)}
<Badge size="md" variant="default">
Time range: ±{ms(range / 2)}
</Badge>