mirror of
https://github.com/n8n-io/n8n.git
synced 2026-12-04 16:51:08 +00:00
fix(Google Cloud Firestore Node): Fix empty string interpreted as number (#7136)
This commit is contained in:
1 parent
b67a6fc432
commit
915cfa0f6a
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user