Skip to content

Commit

Permalink
Remove undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
aangelisc committed Jul 3, 2024
1 parent 8876419 commit 7e00509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/sqlGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7e00509

Please sign in to comment.