Skip to content

Commit

Permalink
fix: solved issue with numeric values for virtual columns (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg authored Aug 17, 2024
1 parent f236c80 commit 25739bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ export function parseFilter(
findOperator: undefined,
}

const fixValue = (value: string) => (isISODate(value) ? new Date(value) : value)
const fixValue = (value: string) =>
isISODate(value) ? new Date(value) : Number.isNaN(Number(value)) ? value : Number(value)

switch (token.operator) {
case FilterOperator.BTW:
Expand Down

0 comments on commit 25739bd

Please sign in to comment.