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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user