Fix number null value forced to 0 (#10202)

This PR fixes https://github.com/twentyhq/twenty/issues/9980

In here we implement a check to pass null through instead of converting
it to 0.
This commit is contained in:
Lucas Bordeau
2025-02-13 19:15:21 +01:00
committed by GitHub
parent 81b2d5bc89
commit 9cbcf6293b

View File

@ -206,7 +206,7 @@ export class QueryRunnerArgsFactory {
return [key, newValue];
}
case FieldMetadataType.NUMBER:
return [key, Number(value)] as const;
return [key, value === null ? null : Number(value)];
case FieldMetadataType.RICH_TEXT_V2: {
const richTextV2Value = richTextV2ValueSchema.parse(value);