Skip to content

Commit 776edc0

Browse files
committed
fix: removed originalWhere from SurroundingContext tags
1 parent 8d8a50a commit 776edc0

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.changeset/spicy-windows-repeat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperdx/app": patch
3+
---
4+
5+
fix: remove originalWhere tag from view. not used anyways

packages/app/src/components/ContextSidePanel.tsx

+2-9
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ export default function ContextSubpanel({
4141
}: ContextSubpanelProps) {
4242
const QUERY_KEY_PREFIX = 'context';
4343
const { Timestamp: origTimestamp } = rowData;
44-
const {
45-
where: originalWhere = '',
46-
whereLanguage: originalLanguage = 'lucene',
47-
} = dbSqlRowTableConfig ?? {};
44+
const { whereLanguage: originalLanguage = 'lucene' } =
45+
dbSqlRowTableConfig ?? {};
4846
const [range, setRange] = useState<number>(ms('30s'));
4947
const [contextBy, setContextBy] = useState<ContextBy>(ContextBy.All);
5048
const { control, watch } = useForm({
@@ -234,11 +232,6 @@ export default function ContextSubpanel({
234232
{contextBy}:{CONTEXT_MAPPING[contextBy].value}
235233
</Badge>
236234
)}
237-
{originalWhere && (
238-
<Badge size="md" variant="default">
239-
{originalWhere}
240-
</Badge>
241-
)}
242235
<Badge size="md" variant="default">
243236
Time range: ±{ms(range / 2)}
244237
</Badge>

0 commit comments

Comments
 (0)