mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
Merge pull request #2014 from n8n-io/fix-spreadsheet-node
Fixed the spreadsheet nodes for saving dates
This commit is contained in:
commit
cc56b28538
|
@ -31,6 +31,10 @@ function flattenObject(data: IDataObject) {
|
|||
const returnData: IDataObject = {};
|
||||
for (const key1 of Object.keys(data)) {
|
||||
if (data[key1] !== null && (typeof data[key1]) === 'object') {
|
||||
if (data[key1] instanceof Date) {
|
||||
returnData[key1] = data[key1]?.toString();
|
||||
continue;
|
||||
}
|
||||
const flatObject = flattenObject(data[key1] as IDataObject);
|
||||
for (const key2 in flatObject) {
|
||||
if (flatObject[key2] === undefined) {
|
||||
|
|
Loading…
Reference in a new issue