Skip to content

Commit

Permalink
fix: use proper cqlParser object to run properly in all environments
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbllmnn committed Jun 21, 2024
1 parent 02ce466 commit 23e0546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CqlParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export class CqlParser {

read(text: string | undefined): Filter | Expression<PropertyType> | undefined {
try {
// @ts-expect-error
return cqlParser.parse(text);
// @ts-expect-error defined in the window object
return window.cqlParser.parse(text);
} catch (e) {
return undefined;
}
Expand Down

0 comments on commit 23e0546

Please sign in to comment.