mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 16:25:56 +08:00
chore: add extra safety nets in case of malformed URL (#5767)
This commit is contained in:
parent
1685f0e74f
commit
706f967246
@ -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],
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user