From 7e005093f647ad4fe5ccc54eaa13201d76518bbd Mon Sep 17 00:00:00 2001 From: Andreas Christou Date: Wed, 3 Jul 2024 15:24:42 +0100 Subject: [PATCH] Remove undefined check --- src/data/sqlGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/sqlGenerator.ts b/src/data/sqlGenerator.ts index f3940951..4de2a6d3 100644 --- a/src/data/sqlGenerator.ts +++ b/src/data/sqlGenerator.ts @@ -5,7 +5,7 @@ import otel from 'otel'; * Generates a SQL string for the given QueryBuilderOptions */ export const generateSql = (options: QueryBuilderOptions): string => { - const hasTraceIdFilter = options.meta?.isTraceIdMode && options.meta?.traceId !== undefined; + const hasTraceIdFilter = options.meta?.isTraceIdMode && options.meta?.traceId; if (options.queryType === QueryType.Traces && hasTraceIdFilter) { return generateTraceIdQuery(options); } else if (options.queryType === QueryType.Traces) {