mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(Google Cloud Firestore Node): Fix empty string interpreted as number (#7136)
This commit is contained in:
@@ -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