mirror of
https://github.com/jlengrand/signoz.git
synced 2026-03-10 08:41:20 +00:00
chore: add extra safety nets in case of malformed URL (#5767)
This commit is contained in:
@@ -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],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user