mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-23 10:32:17 -08:00
fix(Google Cloud Firestore Node): Fix empty string interpreted as number (#7136)
This commit is contained in:
parent
b67a6fc432
commit
915cfa0f6a
|
@ -83,7 +83,7 @@ export function jsonToDocument(value: string | number | IDataObject | IDataObjec
|
|||
return { booleanValue: value };
|
||||
} else if (value === null) {
|
||||
return { nullValue: null };
|
||||
} else if (!isNaN(value as number)) {
|
||||
} else if (value !== '' && !isNaN(value as number)) {
|
||||
if (value.toString().indexOf('.') !== -1) {
|
||||
return { doubleValue: value };
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue