mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +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) {
|
||||
let skippedFirst = false;
|
||||
|
||||
// @ts-ignore
|
||||
if (Array.isArray(jsonResponseData['d:multistatus']['d:response'])) {
|
||||
// @ts-ignore
|
||||
for (const item of jsonResponseData['d:multistatus']['d:response']) {
|
||||
if (skippedFirst === false) {
|
||||
@@ -1132,6 +1134,8 @@ export class NextCloud implements INodeType {
|
||||
returnData.push(newItem as IDataObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
returnData.push(responseData as IDataObject);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user