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.

chore: add extra safety nets in case of malformed URL (#5767)

Vikrant Gupta706f9672463f
diff --git a/frontend/src/pages/LogsExplorer/index.tsx b/frontend/src/pages/LogsExplorer/index.tsx
index 0c7e33c52a..8873d04e39 100644
--- a/frontend/src/pages/LogsExplorer/index.tsx
+++ b/frontend/src/pages/LogsExplorer/index.tsx
@@ -52,15 +52,15 @@ function LogsExplorer(): JSX.Element {
const isMultipleQueries = useMemo(
() =>
- currentQuery.builder.queryData.length > 1 ||
- currentQuery.builder.queryFormulas.length > 0,
+ currentQuery.builder.queryData?.length > 1 ||
+ currentQuery.builder.queryFormulas?.length > 0,
[currentQuery],
);
const isGroupByPresent = useMemo(
() =>
- currentQuery.builder.queryData.length === 1 &&
- currentQuery.builder.queryData[0].groupBy.length > 0,
+ currentQuery.builder.queryData?.length === 1 &&
+ currentQuery.builder.queryData?.[0]?.groupBy?.length > 0,
[currentQuery.builder.queryData],
);