Skip to content

Commit

Permalink
Backport #1064 to 2.x branch
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Fitzgibbons <[email protected]>
  • Loading branch information
pjfitzgibbons committed Oct 4, 2023
1 parent e21dcf2 commit 782d4d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/components/common/query_utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,8 @@ export const preprocessQuery = ({

if (isEmpty(tokens)) return finalQuery;

finalQuery = `${tokens![1]}=${
tokens![2]
} | where ${timeField} >= '${start}' and ${timeField} <= '${end}'`;
finalQuery = `${tokens![1]}=${tokens![2]
} | where ${timeField} >= '${start}' and ${timeField} <= '${end}'`;

if (whereClause) {
finalQuery += ` AND ${whereClause}`;
Expand Down

0 comments on commit 782d4d5

Please sign in to comment.