Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix(date-time-selection): reset to the correct value under modal (#10813)

Vinicius Lourenço43f7363e845f
diff --git a/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx b/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx
index c018395fd6..f3dd2bb37b 100644
--- a/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx
+++ b/frontend/src/container/TopNav/DateTimeSelectionV2/index.tsx
@@ -360,7 +360,11 @@ function DateTimeSelection({
const invalidateQueries = useGlobalTimeQueryInvalidate();
const onRefreshHandler = (): void => {
invalidateQueries();
- onSelectHandler(selectedTime);
+ onSelectHandler(
+ isModalTimeSelection && modalSelectedInterval
+ ? modalSelectedInterval
+ : selectedTime,
+ );
onLastRefreshHandler();
};
const handleReset = useCallback(() => {