- {value}
+ {sanitizedValue}
- {isSecureHTTPContext ? value && : null}
+ {isSecureHTTPContext ? sanitizedValue && : null}
);
diff --git a/src/pages/Stream/components/EventTimeLineGraph.tsx b/src/pages/Stream/components/EventTimeLineGraph.tsx
index 0d6ff2d1..47539c47 100644
--- a/src/pages/Stream/components/EventTimeLineGraph.tsx
+++ b/src/pages/Stream/components/EventTimeLineGraph.tsx
@@ -10,9 +10,11 @@ import { useAppStore } from '@/layouts/MainLayout/providers/AppProvider';
import { useFilterStore, filterStoreReducers } from '../providers/FilterProvider';
import { LogsResponseWithHeaders } from '@/@types/parseable/api/query';
import _ from 'lodash';
-const { setTimeRange } = logsStoreReducers;
+import timeRangeUtils from '@/utils/timeRangeUtils';
+const { setTimeRange } = logsStoreReducers;
const { parseQuery } = filterStoreReducers;
+const { makeTimeRangeLabel } = timeRangeUtils;
type CompactInterval = 'minute' | 'day' | 'hour' | 'quarter-hour' | 'half-hour' | 'month';
@@ -233,10 +235,12 @@ function ChartTooltip({ payload }: ChartTooltipProps) {
const { aboveAvgPercent, events, startTime, endTime } = payload[0]?.payload as GraphTickItem;
const isAboveAvg = aboveAvgPercent > 0;
+ const label = makeTimeRangeLabel(startTime.toDate(), endTime.toDate());
+
return (