mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
🐛 Fix issue with empty folders on Nextcloud node #2057
This commit is contained in:
@@ -1103,6 +1103,8 @@ export class NextCloud implements INodeType {
|
|||||||
(jsonResponseData['d:multistatus'] as IDataObject)['d:response'] !== null) {
|
(jsonResponseData['d:multistatus'] as IDataObject)['d:response'] !== null) {
|
||||||
let skippedFirst = false;
|
let skippedFirst = false;
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
|
if (Array.isArray(jsonResponseData['d:multistatus']['d:response'])) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
for (const item of jsonResponseData['d:multistatus']['d:response']) {
|
for (const item of jsonResponseData['d:multistatus']['d:response']) {
|
||||||
if (skippedFirst === false) {
|
if (skippedFirst === false) {
|
||||||
@@ -1132,6 +1134,8 @@ export class NextCloud implements INodeType {
|
|||||||
returnData.push(newItem as IDataObject);
|
returnData.push(newItem as IDataObject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
returnData.push(responseData as IDataObject);
|
returnData.push(responseData as IDataObject);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user