From 915cfa0f6a0311ca34d2f8eeb471c601473314aa Mon Sep 17 00:00:00 2001 From: Quang-Linh LE Date: Tue, 12 Sep 2023 11:03:33 +0200 Subject: [PATCH] fix(Google Cloud Firestore Node): Fix empty string interpreted as number (#7136) --- .../nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts index 8caf77c2b9..2191c5bd93 100644 --- a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts @@ -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 {