mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08: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:
co-authored by
Shireen Missi
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) {
|
||||
|
||||
Reference in New Issue
Block a user