mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-05 01:56:56 +00:00
fix: limit the number to safe integers
This commit is contained in:
@@ -808,3 +808,7 @@ export const parsePlainCellValue = (
|
||||
|
||||
return value as unknown as string
|
||||
}
|
||||
|
||||
export function toSafeInteger(value: number) {
|
||||
return Math.max(Number.MIN_SAFE_INTEGER, Math.min(value, Number.MAX_SAFE_INTEGER))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user