mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 16:05:55 +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(
|
const isMultipleQueries = useMemo(
|
||||||
() =>
|
() =>
|
||||||
currentQuery.builder.queryData.length > 1 ||
|
currentQuery.builder.queryData?.length > 1 ||
|
||||||
currentQuery.builder.queryFormulas.length > 0,
|
currentQuery.builder.queryFormulas?.length > 0,
|
||||||
[currentQuery],
|
[currentQuery],
|
||||||
);
|
);
|
||||||
|
|
||||||
const isGroupByPresent = useMemo(
|
const isGroupByPresent = useMemo(
|
||||||
() =>
|
() =>
|
||||||
currentQuery.builder.queryData.length === 1 &&
|
currentQuery.builder.queryData?.length === 1 &&
|
||||||
currentQuery.builder.queryData[0].groupBy.length > 0,
|
currentQuery.builder.queryData?.[0]?.groupBy?.length > 0,
|
||||||
[currentQuery.builder.queryData],
|
[currentQuery.builder.queryData],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user