mirror of
https://github.com/n8n-io/n8n.git
synced 2025-11-20 17:46:34 +00: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 New Issue
Block a user