mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
🐛 Fix issue with empty folders on Nextcloud node #2057
This commit is contained in:
parent
fc6d3ad8c0
commit
72d57537de
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue