mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-27 23:07:12 +02:00
fix(Grist Node): Allow filtering for numbers <= 0 (#20045)
Co-authored-by: Shireen Missi <94372015+ShireenMissi@users.noreply.github.com>
This commit is contained in:
parent
f1a51c486e
commit
96d3faf3ce
|
|
@ -68,7 +68,8 @@ export function parseSortProperties(sortProperties: GristSortProperties) {
|
|||
}
|
||||
|
||||
export function isSafeInteger(val: number) {
|
||||
return !isNaN(val) && val > Number.MIN_VALUE && val < Number.MAX_VALUE;
|
||||
//used MIN_SAFE_INTEGER and MAX_SAFE_INTEGER instead of MIN_VALUE and MAX_VALUE to avoid edge cases
|
||||
return !isNaN(val) && val > Number.MIN_SAFE_INTEGER && val < Number.MAX_SAFE_INTEGER;
|
||||
}
|
||||
|
||||
export function parseFilterProperties(filterProperties: GristFilterProperties) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user